-
Notifications
You must be signed in to change notification settings - Fork 314
Mac build fixes #140
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
Mac build fixes #140
Conversation
Uses the changes from pull request wb2osz#71 by schuyler from the main direwolf repo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might also be worth fixing this spurious warning?
diff --git a/Makefile.macosx b/Makefile.macosx
index 70af2ea..c4d2d60 100644
--- a/Makefile.macosx
+++ b/Makefile.macosx
@@ -44,7 +44,7 @@ ifeq (${DARWIN_CC},)
DARWIN_CC := $(shell which gcc)
EXTRA_CFLAGS :=
else
-EXTRA_CFLAGS := -fvectorize -fslp-vectorize -fslp-vectorize-aggressive -pthread
+EXTRA_CFLAGS := -fvectorize -fslp-vectorize -pthread
endif
# Change as required in support of the available libraries
Otherwise, this does allow me to build the dev branch (and 1.5beta3) on my High Sierra (10.13) macOS machine.
@wb2osz any chance this can get merged in before the 1.5 release is cut?
@@ -43,7 +43,7 @@ if [ $valid_flag -eq "0" ]; then | |||
|
|||
prompt="Select SDK to use:" | |||
|
|||
loc1=( $(find /Applications/XCode.app -type d -name "MacOSX10.*.sdk") ) | |||
loc1=( $(find /Applications/Xcode.app -type l -name "MacOSX10.*.sdk") ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if it's worth maintaining the old behavior, but \( -type d -o -type l \)
would match both directories and links.
(it's still a bit worrying that the first time you run |
Completed. This is now in the dev branch, currently 1.5 beta test. |
Here are a few changes I had to make in order to get Dire Wolf to build on my mac, running macOS 10.13.4
Among the changes:
MSG_NOSIGNAL
is not available on macOS, so I added a check for thatWith these changes I'm able to build and get a running version of Dire Wolf on my Mac. Ideally, another Mac user should take a look at these changes and verify that they work for them as well.