From: David Morgan Date: Sat, 5 Nov 2016 07:15:17 +0000 (+0000) Subject: add optimisation flag X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=28d5b5616045717c09c1517c9ef30880a04cabb4;p=console%2Ftaihen-parser.git add optimisation flag --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index af1e2dd..848cf7d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,6 +15,8 @@ if ((NOT ${HAVE_STRING}) OR ${USE_INBUILT_STRING}) add_definitions(-DNO_STRING) endif() +add_definitions(-Os -ffunction-sections -fdata-sections) + add_library(taihenparser lexer.c parser.c) install(TARGETS taihenparser