-
When setting the target-cpu flag it produces an error on a Mac. This seems similar to #459 in that when using "aarch64-apple-darwin" it compiles fine. This would support older or a range of devices. I was compiling only for my machine to test the performance of the application. Would a target of native or apple not be supported? Compiling other programs which don't use Rustler seem to be fine with those target-cpu options. The error is below.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Are you sure that the flags referenced here #459 (comment) are used? The symbols can't be linked on any environment as they are provided by the |
Beta Was this translation helpful? Give feedback.
To say anything more, I'd need to see a reproducible example. The error you are running into is very likely the missing linker args.
Aside, the default target cpu for this target triple is Apple M1, shouldn't that be enough to get all interesting extensions?
Note to self (and @rusterlium/core): We could sidestep these issues and the need for the linker flags by dynamically assigning the symbols in
nif_init
usingdlopen(NULL)
anddlsym
. We do something like this for Windows anyway, as that's how the ABI works. I'll create a PoC.