mesonbuild/meson
Compiler detection is incorrect for native LLVM/Clang install on Windows
已關閉
#2,560 建立於 2017年10月30日
OS:windowscompilershelp wanted
倉庫指標
- 星標
- (4,978 顆星)
- PR 合併指標
- (平均合併 139天 13小時) (30 天內合併 51 個 PR)
描述
ClangCompiler.get_soname_args assumes that Clang on Windows is running under MINGW. It then tries to generate -Wl,-soname options, which are incompatible with Clang 5.0.0.0 running natively on Windows.
CompilerArgs.to_native adds groups via -Wl,--start-group and -Wl,--end-group (as get_compiler_uses_gnuld returns true for Clang on Windows).
CCompiler.gen_import_library_args adds the -Wl,--out-implib option.
CCompiler.build_rpath_args adds the -Wl,-rpath option.
Related options -Wl,--as-needed and -Wl,--no-undefined aren't supported either, but they can be disabled via the b_asneeded and b_lundef flags, respectively.