Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 239ca94

Browse files
author
Jb Aviat
committed
Do not embed debug symbols in macOS libraries
This lower the Gem size from 147MB to 2.4MB.
1 parent 25a54ee commit 239ca94

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff --git a/build/standalone.gypi b/build/standalone.gypi
2+
index 125c5bf..7c1fe2b 100644
3+
--- a/build/standalone.gypi
4+
+++ b/build/standalone.gypi
5+
@@ -194,6 +194,7 @@
6+
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
7+
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
8+
'GCC_THREADSAFE_STATICS': 'NO', # -fno-threadsafe-statics
9+
+ 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', # No -gdwarf-2
10+
'GCC_VERSION': 'com.apple.compilers.llvmgcc42',
11+
'GCC_WARN_ABOUT_MISSING_NEWLINE': 'YES', # -Wnewline-eof

0 commit comments

Comments
 (0)