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

Disable optimizations for macOS builds #26564

Merged
merged 2 commits into from
Nov 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,16 @@ LDFLAGS += $(PROFILE)
# enable optimizations. slow to build
ifdef RELEASE
ifeq ($(NATIVE), osx)
ifeq ($(shell $(CXX) -E -Os - < /dev/null > /dev/null 2>&1 && echo fos),fos)
OPTLEVEL = -Os
ifdef OSXCROSS
OPTLEVEL = -O0
else ifeq ($(shell expr $(OSX_MIN) \<= 10.11), 1)
OPTLEVEL = -O0
else
OPTLEVEL = -O3
ifeq ($(shell $(CXX) -E -Os - < /dev/null > /dev/null 2>&1 && echo fos),fos)
OPTLEVEL = -Os
else
OPTLEVEL = -O3
endif
endif
else
# MXE ICE Workaround
Expand Down