Skip to content

Commit

Permalink
Optimise binaries for size
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Dec 2, 2021
1 parent 77daa32 commit 67f139a
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
'cflags_cc': [
'-Wall',
'-Ofast',
'-Os',
'-funroll-loops'
],
'cflags!': [ '-fno-exceptions' ],
Expand All @@ -23,23 +23,6 @@
'defines': [
'FARMHASH_OPTIONAL_BUILTIN_EXPECT'
]
}],
['target_arch=="ia32"', {
'cflags_cc': [
'-march=native'
]
}],
['target_arch=="x64"', {
'cflags_cc': [
'-march=native'
]
}],
['target_arch!="arm64"', {
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS+': [
'-march=native',
]
}
}]
],
'xcode_settings': {
Expand All @@ -50,7 +33,7 @@
'OTHER_CPLUSPLUSFLAGS': [
'-fexceptions',
'-Wall',
'-Ofast',
'-Oz',
'-funroll-loops'
]
},
Expand All @@ -59,6 +42,7 @@
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1,
'Optimization': 1,
'DisableSpecificWarnings': ['4244', '4307', '4319']
}
}
Expand Down

0 comments on commit 67f139a

Please sign in to comment.