CTSRD-CHERI / cheribsd-ports

FreeBSD ports tree adapted for CheriBSD.
https://CheriBSD.org
Other
5 stars 10 forks source link

devel/llvm-base: new ports to add /usr/bin/cc etc #6

Closed brooksdavis closed 2 years ago

brooksdavis commented 2 years ago

This ports depends on a another devel/llvm* port and adds wrappers for cc, c++, cpp, ld, ld.lld, and objdump in /usr/bin so that program not looking for a specific compiler can find them. On CHERI architectures the wrapper adds compiler flags so that the wrappers target the expected ABI.

brooksdavis commented 2 years ago

I've verified that the wrapper works as expected on amd64 including using the UNAME_p environment variable to trick the script into asking like it's on morello.

brooksdavis commented 2 years ago

Reworked at @jrtc27's suggestion to just depend on devel/llvm