Conversation
|
What if I cross compiling to x86_64-w64-mingw32 target, can't I use is_plat("mingw") to detect platform? |
|
That means, can we infer target arch and target platform according to --cross? |
why not use llvm-mingw + mingw toolchain. not llvm toolchain |
I do use llvm-mingw toolchain. The reason why I leave that comments is that clang does not distinguish between local compilation and cross compilation. Therefore, compiling with clang's default target and a sysroot clang detected automatically should be the same behavior when I specify the target and sysroot path. Last but not least, I use 24bit-xjkp's script so that I can use triplet+sysroot style cross compilation. If xmake use triplet+sysroot at the begging, xjkp's hundreds of lines of script should not start with supporting |
|
Can we use -arch and -plat to infer target triplet instead of using |
> xmake f -p cross --cross=x86_64-pc-linux-gnu --toolchain=llvm --sdk=C:\xxx\llvm -cvDstd header has been not supported yet