systems-nuts / unifico

Compiler and build harness for heterogeneous-ISA binaries with the same stack layout.
3 stars 1 forks source link

Compiling AArch64 files requires `avoid-wide-mul` attribute #298

Closed blackgeorge-boom closed 10 months ago

blackgeorge-boom commented 10 months ago

After adding https://github.com/blackgeorge-boom/llvm-unifico/pull/2 we need to add the -avoid-wide-mul attribute to AArch64, even if we are compiling for x86 only. This is because getting the callsite alignment files depends on the *aarch64_init.o files, whose compilation might break currently if we don't include the above flag.

Perhaps in the future, we can try to decouple this issue by making sure that compilation will work even if we don't include all of Unifico flags for llc.

Closes: https://github.com/systems-nuts/unifico/issues/297