Dear Joshua,
it is possible to cross-compile lisp code using ECL. Basically, one needs to set up paths the compiler and linker binaries as well as paths to the include and library directories in the host compiler (built in the first step of cross-compiling ECL itself, see the INSTALL file for instructions) to point to the ones for the target system.
One can then call `compile-file` as usual, taking care to either load files with the bytecompiler or compiling twice (once for the target and once for the host) before loading.
For an example how this works, see the EQL5 project https://gitlab.com/eql/EQL5-Android/. You could also look at https://gitlab.com/spaghettisalat/jffi_repl_example/blob/master/app/src/main... for an example with a basic asdf integration.
Best regards, Marius Gerbershagen
Am 26.06.21 um 19:43 schrieb Joshua Armenta:
Is there a flag to set another architecture type during the compilation process?
For example I’m on an Intel Mac but I want to make a project build for ARM Mac (or a fat binary) to not use Rosetta 2 for that version.
Or, I’m on a Mac but want to cross compile the lisp project/static library to windows.
Trying to integrate some code into a CI platform. Thx!
Sent from my iPhone
*Disclaimer*
The information contained in this communication from the sender is confidential. It is intended solely for use by the recipient and others authorized to receive it. If you are not the recipient, you are hereby notified that any disclosure, copying, distribution or taking action in relation of the contents of this information is strictly prohibited and may be unlawful.
This email has been scanned for viruses and malware, and may have been automatically archived by Mimecast, a leader in email security and cyber resilience. Mimecast integrates email defenses with brand protection, security awareness training, web security, compliance and other essential capabilities. Mimecast helps protect large and small organizations from malicious activity, human error and technology failure; and to lead the movement toward building a more resilient world. To find out more, visit our website.