clang target被忽略

时间:2017-12-05 14:15:49

标签: c++ c windows clang

我在尝试使用clan编译器5.0.0时设置目标:

& "C:\Program Files\LLVM\bin\clang" -v .\src\Filter.cpp -target powerpc-unknown-linux
  

clang version 5.0.0(tags / RELEASE_500 / final)目标:   powerpc-unknown-linux 线程模型:posix InstalledDir:C:\ Program   Files \ LLVM \ bin" C:\ Program Files \ LLVM \ bin \ clang.exe" -cc1 -triple   powerpc-unknown-linux -emit-obj -mrelax-all -disable-free   -disable-llvm-verifier -discard-value-names -main-file-name MessageFilter.cpp -mrelocation-model static -mthread-model posix   -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu ppc -mfloat-abi hard -v -dwarf-column-info -debugger-tuning = gdb -resource-dir" C:\ Program Files \ LLVM \ lib \ clang \ 5.0.0" -internal-isystem / usr / local / include   -internal-isystem" C:\ Program Files \ LLVM \ lib \ clang \ 5.0.0 \ include" -internal-externc-ISYSTEM   / include -internal-externc-isystem / usr / include -fdeprecated-macro   -fdebug-compilation-dir" C:\ Source \ Filter"   -ferror-limit 19 -fmessage-length 120 -fno-signed-char -fobjc-runtime = gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o" C:\ Users \ kfir \应用程序数据\本地\ TEMP \过滤器 - 6f8e03.o" -x c ++   的" \ SRC \ Filter.cpp" clang -cc1版本5.0.0基于LLVM   5.0.0默认目标x86_64-pc-windows-msvc

即使我已将目标设置为-target powerpc-unknown-linux,它仍会被clang编译器忽略,并设置另一个值:

x86_64-pc-windows-msvc

我非常感谢你的一些帮助。

0 个答案:

没有答案