Skip to content

Commit

Permalink
Enable RTTI on NX toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Sep 30, 2024
1 parent 7a869bc commit 12db82a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions HorizonNX.toolchain
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

set(CMAKE_SYSTEM_NAME "Generic")
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 11)
set(WITH_PORTLIBS ON CACHE BOOL "use portlibs ?")

macro(msys_to_cmake_path MsysPath ResultingPath)
Expand Down Expand Up @@ -32,7 +30,7 @@ endif()
set(PKG_CONFIG "${DEVKITPRO}/portlibs/bin/aarch64-none-elf-pkg-config" CACHE STRING "")
set(CPPFLAGS "-D__SWITCH__ -I${DEVKITPRO}/libnx/include -I${DEVKITPRO}/portlibs/switch/include")
set(CMAKE_C_FLAGS "${CPPFLAGS} -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIC -ffunction-sections" CACHE STRING "C flags")
set(CMAKE_CXX_FLAGS "${CPPFLAGS} ${CMAKE_C_FLAGS} -fno-rtti" CACHE STRING "C++ flags")
set(CMAKE_CXX_FLAGS "${CPPFLAGS} ${CMAKE_C_FLAGS}" CACHE STRING "C++ flags")

if(WITH_PORTLIBS)
set(CMAKE_FIND_ROOT_PATH ${DEVKITPRO}/devkitA64 ${DEVKITPRO} ${DEVKITPRO}/libnx ${DEVKITPRO}/portlibs/switch)
Expand Down

0 comments on commit 12db82a

Please sign in to comment.