From 28d5b5616045717c09c1517c9ef30880a04cabb4 Mon Sep 17 00:00:00 2001 From: David Morgan Date: Sat, 5 Nov 2016 07:15:17 +0000 Subject: [PATCH] add optimisation flag --- src/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5