Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip dead code on Mac #476

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions bin/env_macos.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ MX2_APP_DIR_DYLIB=
MX2_APP_DIR_FRAMEWORK=../Frameworks

'LD options
MX2_LD_OPTS_MACOS=-mmacosx-version-min=10.9 -Wl,-rpath,@executable_path -Wl,-rpath,@executable_path/../Frameworks
MX2_LD_OPTS_MACOS=-mmacosx-version-min=10.9 -Wl,-rpath,@executable_path -Wl,-rpath,@executable_path/../Frameworks -Wl,-dead_strip
MX2_LD_OPTS_MACOS_DEBUG=
MX2_LD_OPTS_MACOS_RELEASE=-O3

'C compiler options
MX2_CC_OPTS_MACOS=-std=gnu99 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality
MX2_CC_OPTS_MACOS=-std=gnu99 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality -ffunction-sections -fdata-sections
MX2_CC_OPTS_MACOS_DEBUG=
MX2_CC_OPTS_MACOS_RELEASE=-O3 -DNDEBUG

'C++ compiler options
MX2_CPP_OPTS_MACOS=-std=c++14 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality
MX2_CPP_OPTS_MACOS=-std=c++14 -mmacosx-version-min=10.9 -Wno-deprecated-declarations -Wno-tautological-pointer-compare -Wno-undefined-bool-conversion -Wno-int-to-void-pointer-cast -Wno-inconsistent-missing-override -Wno-logical-op-parentheses -Wno-parentheses-equality -ffunction-sections -fdata-sections
MX2_CPP_OPTS_MACOS_DEBUG=
MX2_CPP_OPTS_MACOS_RELEASE=-O3 -DNDEBUG

Expand Down Expand Up @@ -51,7 +51,7 @@ MX2_LD_OPTS_EMSCRIPTEN=-s FETCH=1 -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISA
MX2_LD_OPTS_EMSCRIPTEN_DEBUG=-O2 -s ASSERTIONS=2
MX2_LD_OPTS_EMSCRIPTEN_RELEASE=-O3

MX2_LD_OPTS_EMSCRIPTEN_WASM=-s BINARYEN=1
MX2_LD_OPTS_EMSCRIPTEN_WASM=-s BINARYEN=1

'C compiler options
MX2_CC_OPTS_EMSCRIPTEN=-std=gnu99 -s USE_SDL=2 -s TOTAL_MEMORY=268435456 -s DISABLE_EXCEPTION_CATCHING=1 -s ERROR_ON_UNDEFINED_SYMBOLS=0
Expand Down Expand Up @@ -106,7 +106,7 @@ MX2_IOS_DEPLOYMENT_TARGET=8.0
'LD options
MX2_LD_OPTS_IOS=${MX2_IOS_ARCHS} -isysroot ${MX2_IOS_SDK}
MX2_LD_OPTS_IOS_DEBUG=
MX2_LD_OPTS_IOS_RELEASE=-O3
MX2_LD_OPTS_IOS_RELEASE=-O3

'C compiler options
'
Expand Down