futhark icon indicating copy to clipboard operation
futhark copied to clipboard

OS X-- build out of the box

Open viega opened this issue 10 months ago • 3 comments

Added a flag to link the default libclang that installs when you have already installed XCode.

I couldn't figure out how to get this into the nimble file without delving into nimble code, so it's living in a new config.nims.

viega avatar Aug 20 '23 23:08 viega

Note that this only helps the build; you still need to (as root) set up opir etc. to use the lib, eg:

install_name_tool -add_rpath /Library/Developer/CommandLineTools/usr/lib/ ~/.nimble/pkgs/futhark-0.9.3/opir
install_name_tool -change libclang.dylib @loader_path/Library/Developer/CommandLineTools/usr/lib/ ~/.nimble/pkgs/futhark-0.9.3/opir

viega avatar Aug 21 '23 01:08 viega

Could you drop that last part into the README? And how does this differ from the logic already in the opir.nims file? I'm not familiar with how OSX handles their paths but I was under the impression that that would ask xcode where it had stored its libraries.

PMunch avatar Aug 21 '23 07:08 PMunch

Sure, I didn't even take the time to look closely; didn't see opir.nims actually. I just dealt with the errors that came up when I moved to a Mac. I'll take a closer look and try to do it right, but might not be able to get to it until later in the week.

viega avatar Aug 21 '23 11:08 viega