Skip to content

Commit

Permalink
Jamfile: Optimize build output size
Browse files Browse the repository at this point in the history
The goal here is to keep builds reasonably fast for development.
Some time hopefully we'll have the ability to specify whether to build
a debug or release build. But for now, we're stuck with trying to
optimize both build time and build size simultaneously.

Coolcoder613eb proposed four build flags to add. I tested them for
their effect on build time and size.
  • Loading branch information
Zardshard committed Jan 28, 2024
1 parent eab0d76 commit e0da7a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ SubDirHdrs /system/lib/python$(python_version)/vendor-packages/pybind11/include/
SubDirHdrs /system/develop/headers/python$(python_version)/ ;

# Additional C++ flags to use when compiling
SubDirC++Flags -std=c++14 -pipe -fPIC ;
# TODO: only run -Os for release builds. Development builds should prioritize
# build time
SubDirC++Flags -std=c++14 -pipe -fPIC -Os -fvisibility=hidden ;

# Flags to use when linking
LINKLIBS = -lbe ;
Expand Down

0 comments on commit e0da7a7

Please sign in to comment.