无法通过clang-cl在Win64上为Win32编译C ++代码

时间:2019-07-04 13:03:42

标签: clang cross-compiling clang++ llvm-clang clang-cl

我试图在Winx32平台的Winx64主机上编译程序。当我尝试在不带cl的Winx64平台的Winx64主机上编译它时,工作正常。但是,当我想为Winx32平台编译时,会出现如下打印错误:

[1/34] Building C object CMakeFiles/rlua.dir/lapi.c.obj
FAILED: CMakeFiles/rlua.dir/lapi.c.obj 
clang-cl -Drlua_EXPORTS  -g -Xclang -gcodeview -O0 -D_DEBUG -D_DLL -D_MT -Xclang --dependent-lib=msvcrtd   -MD -march=x86-64 -MD -MT CMakeFiles/rlua.dir/lapi.c.obj -MF CMakeFiles\rlua.dir\lapi.c.obj.d -o CMakeFiles/rlua.dir/lapi.c.obj   -c C:/Gitlab-Runner/builds/68624549/projects/rlua/src/lapi.c
clang-cl: warning: unknown argument ignored in clang-cl: '-g' [-Wunknown-argument]
clang-cl: warning: unknown argument ignored in clang-cl: '-MF' [-Wunknown-argument]
clang-cl: error: no such file or directory: 'CMakeFiles/rlua.dir/lapi.c.obj'
clang-cl: error: no such file or directory: 'CMakeFiles\rlua.dir\lapi.c.obj.d'

0 个答案:

没有答案