Can't compile c++ code on Win64 for Win32 throught clang-cl

I tried to compile the program on Winx64 host machine for Winx32 platform. When I tried compiling it on Winx64 host for Winx64 platform without cl, it's work okay. But when I want to compile for Winx32 platform it's print errors like this one:

1
2
3
4
5
6
7
8
9
10
11
[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'
Last edited on
Topic archived. No new replies allowed.