Skip to content

Commit 8e168ff

Browse files
mobilebenfaithfracture
authored andcommitted
Add in --hidden-visibility support (#37)
1 parent ccaf933 commit 8e168ff

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

boost.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ OPTIONS:
205205
Specify the macOS architectures to build for. Space-separate list.
206206
Defaults to ${MACOS_ARCHS[*]}
207207
208+
--hidden-visibility
209+
Compile using -fvisibility=hidden and -fvisibility-inlines-hidden
210+
208211
--no-framework
209212
Do not create the framework.
210213
@@ -376,6 +379,10 @@ parseArgs()
376379
fi
377380
;;
378381

382+
--hidden-visibility)
383+
CXX_FLAGS="$CXX_FLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
384+
;;
385+
379386
--universal)
380387
UNIVERSAL=1
381388
;;

0 commit comments

Comments
 (0)