Skip to content

Commit 9543622

Browse files
committed
Adding cflags to prevent compilation halts
1 parent 99a772c commit 9543622

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

backends/cadence/cadence.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ set(CMAKE_CROSSCOMPILING TRUE)
4141
set(CMAKE_C_COMPILER ${TOOLCHAIN_HOME}/bin/${CROSS_COMPILE_TARGET}-clang)
4242
set(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+
4649
set(CMAKE_SYSROOT ${TOOLCHAIN_HOME}/${SYSROOT_TARGET})
4750
set(CMAKE_LINKER ${TOOLCHAIN_HOME}/bin/xt-ld)
4851
add_link_options(-lm -stdlib=libc++ -Wl,--no-as-needed -static)

0 commit comments

Comments
 (0)