mesonbuild/meson

Compiler detection is incorrect for native LLVM/Clang install on Windows

クローズ

#2,560 opened on 2017/10/30

 (9 件のコメント) (2 件のリアクション) (0 人の担当者)Python (1,465 件のフォーク)batch import
OS:windowscompilershelp wanted

Repository metrics

Stars
 (4,978 個のスター)
PR merge metrics
 (平均マージ 139d 13h) (30d で 51 merged PRs)

説明

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.

コントリビューターガイド