-
-
Notifications
You must be signed in to change notification settings - Fork 418
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
Fix lib/llvm to support MacOS #3181
Conversation
Testing only DO NOT MERGE. @SeanTAllen, please test this on Mac OSX |
This is awesome @winksaville. Thanks. I'll give this a trial run sometime this weekend. |
Testing this now. I've identified one small additional issue: MacOS find |
@winksaville this worked fine, there is that one |
@SeanTAllen could you past the
|
@winksaville it doesn't even support I tried
It appears from the manpage that it only support This FreeBSD manpage is the same as what I get on MacOS: |
Would it be reasonable to |
coreutils installs greadlink which is in
Seems like checking for greadlink before readlink would be a good idea? |
826aa0b
to
f528bef
Compare
Tweaks to prefer greadlink and if OSTYPE is |
@winksaville sounds good. |
@winksaville tested again. looking good. you happy with now and ready for a merge? |
lib/llvm/Makefile: OSX does not support LLVM_USE_LINKER so do not specify a LLVM_LINKER and instead use the default system linker. - Add OSTYPE from the code in Makefile-ponyc - Check for greadlink if OSTYPE is osx - Default LLVM_LINKER to empty value - Only set LLVM_USE_LINKER if LLVM_LINKER is not empty lib/llvm/llvm-base.rules: OSX does not support the -T parameter so just use the position parameters. The first parameter is the target and the second parameter is the name of the symlink, so removing the -T fixes this incompatibility.
f528bef
to
6919a81
Compare
LGTM, this last change just removed the debug I'd enabled. So lets run the tests one last time and you do one last test before merging. |
@winksaville I left one comment re: ld-gold. Not sure if the line I noted is intentionally or left over from debugging. |
I'd missed that comment, I've now commented on it and marked it as resolved. |
Failure is unrelated. Merging. Thanks @winksaville. |
@SeanTAllen, you're most welcome! |
[skip ci]
lib/llvm/Makefile: OSX does not support LLVM_USE_LINKER so do not specify
a LLVM_LINKER and instead use the default system linker.
lib/llvm/llvm-base.rules: OSX does not support the -T parameter so just
use the position parameters. The first parameter is the target
and the second parameter is the name of the symlink, so removing
the -T fixes this incompatibility.