Displaying 2 results from an estimated 2 matches for "cross_toolchain_flags_".
2016 Feb 10
4
Guidance on cross compiling LLVM with mingw-w64 and cmake
I need to build libLLVM (individual static libraries are fine at the
moment) using mingw-w64 cross compilers, i686-w64-mingw32-gcc and
(separately) x86_64-w64-mingw32-gcc. I'd like this to work from both
Linux and Cygwin build environments. With autotools, this worked fine:
../configure --host=i686-w64-mingw32 and that's it (with mingw32-gcc-c++
installed on Fedora 23, also works fine on
2017 Oct 18
2
LLVM cross-compilation cmake issues
...endif()
+ unset(ENV{ASM})
+ unset(ENV{CC})
+ unset(ENV{CXX})
execute_process(COMMAND ${CMAKE_COMMAND} ${build_type_flags}
-G "${CMAKE_GENERATOR}" -DLLVM_TARGETS_TO_BUILD=${LLVM_TARGETS_TO_BUILD}
${CROSS_TOOLCHAIN_FLAGS_${target_name}} ${CMAKE_SOURCE_DIR}
It would be more proper to save the values of these environment variables at
the start of the configure (before any project command is run) and restore
those values before starting the native configure, of course. This still fe...