File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,11 @@ set(CMAKE_CROSSCOMPILING TRUE)
4141set (CMAKE_C_COMPILER ${TOOLCHAIN_HOME} /bin/${CROSS_COMPILE_TARGET} -clang)
4242set (CMAKE_CXX_COMPILER ${TOOLCHAIN_HOME} /bin/${CROSS_COMPILE_TARGET} -clang++)
4343
44- set (CMAKE_C_FLAGS_INIT "-stdlib=libc++ -mtext-section-literals -mlongcalls -fno-strict-aliasing" )
45- set (CMAKE_CXX_FLAGS_INIT "-stdlib=libc++ -mtext-section-literals -mlongcalls -fno-strict-aliasing" )
44+ set (CMAKE_C_FLAGS_INIT "-stdlib=libc++ -mtext-section-literals -mlongcalls" )
45+ set (CMAKE_CXX_FLAGS_INIT "-stdlib=libc++ -mtext-section-literals -mlongcalls" )
46+ #workaround for larger compilation time
47+ SET (CMAKE_CXX_FLAGS_INIT "${CMAKE_CXX_FLAGS_INIT} -fno-strict-aliasing" )
48+
4649set (CMAKE_SYSROOT ${TOOLCHAIN_HOME} /${SYSROOT_TARGET} )
4750set (CMAKE_LINKER ${TOOLCHAIN_HOME} /bin/xt-ld)
4851add_link_options (-lm -stdlib=libc++ -Wl,--no -as-needed -static )
You can’t perform that action at this time.
0 commit comments