Accessing the path of the base compiler behind the shim #5889
Unanswered
tdavidcl
asked this question in
Writing Formulae/Casks
Replies: 1 comment
-
Here are 32 formulae that we have workaround to remove references to the shims: https://github.com/search?q=repo%3AHomebrew%2Fhomebrew-core+%22Homebrew+shims%22&type=code. That may help for inspiration. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
Hi,
I'm currently writing a Formula for AdaptiveCpp which is a compiler for SYCL.
In its install phase it register in a database the path of the compiler used to build it.
The issue is that when packaging AdaptiveCpp with homebrew it registers the path to the shim (e.g. something like
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/linux/super/g++
).This is of course not intended in the resulting formula, therefore, I'm looking for a way to access the underlying compiler behind the shim to register it instead.
On MacOS i'm trying to use
xcrun
to bypass the provided compiler but this is a bit sketchy ...Thanks
Beta Was this translation helpful? Give feedback.
All reactions