Comments (3)
Hi!
Thank you for looking into this. Unfortunately, build artifacts can not be used in repository rules. Bazel has three distinct sequential phases -- loading, analysis and build. Repository rules are executed in the loading phase, so they can not depend on anything from the analysis or build phases.
The script has to be directly executed or interpreted. What we can do instead is provide the script as an argument to the python interpreter which will not rely on the unix specific shebang line mechanism. Sounds good?
from toolchains_llvm.
Oh, you're right, sorry, I didn't think about that. Calling the Python interpreter sounds like a good solution indeed.
from toolchains_llvm.
Closing this issue because the solution to the problem is something else. The exact solution can be determined when working on Windows support.
from toolchains_llvm.
Related Issues (20)
- If ID_LIKE is not set in /etc/os-release, an error ensues
- Linux AArch64 build fails with missing include <features.h> HOT 1
- Mismatched tags HOT 5
- Bazel Builds will Fail on Pulling if Using Old Org and Repo Name HOT 3
- Dependency Dashboard HOT 2
- No such file or directory error with bazel 7 HOT 3
- Override OS version possible? HOT 5
- Add support for LLVM 17.x.x HOT 4
- New release? HOT 2
- Replace usage of `tool_paths` with `action_configs` HOT 5
- Repo governance HOT 2
- Issues with Version 1.0.0 HOT 6
- Option to use `--linkopt=-fuse-ld=ld64.lld` flag does not respect `absolute_paths = True` HOT 1
- Fatal error: module 'crosstool' is needed but has not been provided, and implicit use of module files is disabled HOT 6
- Documentation on using toolchains_llvm with bzlmod HOT 1
- Use deb packages as binary sources
- discrepancy with toolchain on builds on same OS & Arch HOT 4
- don't use cc_wrapper.sh when specify toolchain from local absolute path?
- made cxx_builtin_include_directories also support an empty key
- Support for more target platforms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from toolchains_llvm.