Toolchain: Add some required options to the default CMake options.

This commit is contained in:
Robin Burchell 2019-05-18 02:01:45 +02:00 committed by Andreas Kling
parent df74a9222f
commit 95893b0d53

View file

@ -4,6 +4,8 @@ if (NOT DEFINED ENV{SERENITY_ROOT})
message(FATAL_ERROR "SERENITY_ROOT not set. Please source Toolchain/UseIt.sh.")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -fno-exceptions")
# where to read from/write to
set(CMAKE_SYSROOT $ENV{SERENITY_ROOT}/Root)
set(CMAKE_STAGING_PREFIX $ENV{SERENITY_ROOT}/Root)