This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not embed debug symbols in macOS libraries
This dramatically lowers the produced binary size.
- Loading branch information
Showing
4 changed files
with
38 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From ca12923b30009a29f4be8b93d44bdccf0cce44a0 Mon Sep 17 00:00:00 2001 | ||
From: Jb Aviat <jb@sqreen.io> | ||
Date: Mon, 27 Feb 2017 11:14:42 +0200 | ||
Subject: [PATCH 4/4] Do not embed debug symbols in macOS libraries | ||
|
||
This lowers dramatically the produced binary size | ||
--- | ||
gypfiles/standalone.gypi | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi | ||
index b3e4d67a6e..e9ed2437a7 100644 | ||
--- a/gypfiles/standalone.gypi | ||
+++ b/gypfiles/standalone.gypi | ||
@@ -1062,6 +1062,7 @@ | ||
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions | ||
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti | ||
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings | ||
+ 'GCC_GENERATE_DEBUGGING_SYMBOLS': 'NO', # No -gdwarf-2 | ||
# GCC_INLINES_ARE_PRIVATE_EXTERN maps to -fvisibility-inlines-hidden | ||
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES', | ||
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden | ||
-- | ||
2.11.1 | ||
|