Open bgergely0 opened 6 days ago
its your compiler does not support this option, try to not use it
@lygstate I use clang 14, it does support it.
It even warns if I misspell the flag:
clang: error: unknown argument '-mbranch-protectionn=pac-ret'; did you mean '-mbranch-protection=pac-ret'?
So it definately knows about it, but still decides not to use it.
After some more investigation, the issue is more clear:
-mbranch-protection=pac-ret
gets passed to the linker as wellSo the issue is that all compilation flags get passed to the linker, regardless of support by the linker.
Contributions through new PRs are always welcome!
I am trying to build the project on an aarch64 Linux machine, and when passing the compiler flag
-mbranch-protection=pac-ret
, I cannot build, the build process terminates with:clang: error: argument unused during compilation: '-mbranch-protection=pac-ret' [-Werror,-Wunused-command-line-argument]
JerryScript revision
Many versions
Build platform
Ubuntu 22.04.5 LTS (Linux 5.15.0-125-generic aarch64)
Build steps
Build log