-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose as_executable in ctx.host_fragments.cpp #5494
Comments
mboes
added a commit
to tweag/rules_haskell
that referenced
this issue
Jun 29, 2018
This is a workaround for bazelbuild/bazel#5494.
New C++ toolchain Skylark API is already submitted at HEAD, so it will be available in the next release. Then you can get path to ar by:
|
#4571 is the tracking bug. Therefore I'll close this issue. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the feature request:
ctx.host_fragments.cpp
already contains fields such ascompiler_executable
,nm_executable
etc pointing to the locations of said executable detected by Bazel. We propose to addctx.host_fragments.cpp.as_executable
to that set for the assembler.Feature requests: what underlying problem are you trying to solve with this feature?
Older versions of GCC call an
as
executable that it expects to be on the path. In hermetic builds with no default user environment, (i.e. with no/usr/bin
inPATH
), we expose in thePATH
a folder with symlinks to exactly those executables that are necessary for the build. But it's hard to do if Bazel doesn't tell us where the assembler is. It already tells us wheregcc
,ar
,nm
etc are. So it shouldn't be very onerous to exposeas
as well.What operating system are you running Bazel on?
ubuntu 16.04
What's the output of
bazel info release
?0.15.0
Have you found anything relevant by searching the web?
Nothing in the issue tracker.
Any other information, logs, or outputs that you want to share?
cc @iphydf
The text was updated successfully, but these errors were encountered: