From 95893b0d5308e7a56239c7d383903dc0345b4cdb Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Sat, 18 May 2019 02:01:45 +0200 Subject: [PATCH] Toolchain: Add some required options to the default CMake options. --- Toolchain/CMakeToolchain.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Toolchain/CMakeToolchain.txt b/Toolchain/CMakeToolchain.txt index e826e46485..835d410eb1 100644 --- a/Toolchain/CMakeToolchain.txt +++ b/Toolchain/CMakeToolchain.txt @@ -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)