mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-30 16:42:07 +00:00
93d7c272cc
* Refactor _env_prelude method to be public (589) In an upcoming commit, the method will be used to set the PATH, INCLUDE and LIB environment variables in Windows when building GNU Make from source * Build make from source on Windows (#589) The built_tools_framework.bzl file was modified so that the PATH, INCLUDE and LIB environment variables are set from the C++ toolchain, e.g. MSVC. The PATH environment variable is prepended with the path to the toolchain's linker, otherwise the MSYS2 linker would be used instead of MSVC (as they are both named link.exe). |
||
---|---|---|
.. | ||
code | ||
BUILD.bazel | ||
README.md | ||
test_libb.cpp |
Simple Make Example
Dependencies
- clang
- bazel
Executing the Example
To execute the example, run
bazel test ...
Troubleshooting
If you receive an error of the form:
ccache: FATAL: Failed to create /home/$USER/.ccache/2/f: Read-only file system
This is likely because you're have ccache set as your compiler. You can either disable ccache, or allow the sandbox to write to ~/.ccache:
bazel test --sandbox_writable_path ~/.ccache ...