2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-30 16:42:07 +00:00
rules_foreign_cc/examples/make_simple
Fabian Meumertzheim f61ce5d10b
Pass toolchain and user env variables to make invocation (#777)
* Pass toolchain and user env variables to make invocation

* Rename configure --> make

* Add integration test coverage for make flag passing

This requires making the make_simple Makefile more realistic by

* using CXX and forwarding it to the wrapper;
* using CXXFLAGS instead of CXX_FLAGS and not overwriting its contents.
2021-11-27 07:52:54 -08:00
..
code Pass toolchain and user env variables to make invocation (#777) 2021-11-27 07:52:54 -08:00
BUILD.bazel Pass toolchain and user env variables to make invocation (#777) 2021-11-27 07:52:54 -08:00
README.md Added ninja rule for building Ninja projects (#527) 2021-03-01 15:46:25 +00:00
test_libb.cpp Pass toolchain and user env variables to make invocation (#777) 2021-11-27 07:52:54 -08:00

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 ...