2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-25 17:31:25 +00:00
rules_foreign_cc/for_workspace
Attila Oláh 466c32c70f
Build under Bazel sandbox instead of /tmp (#479)
* Build under bazel sandbox instead of /tmp, and remove redundant printf

Build artifacts under /tmp are not cleaned up after a failed build, for
the ease of debugging.  However, this can quickly fill up the /tmp partition
if the build is large.  Build under the sandbox directory instead, and
rely on standard bazel cleanup scheme.

Also remove a print from the cleanup function, which somehow causes empty
newlines to be printed in bazel build output.

* Avoid infinite recursion in symlink_to_dir.

This is a somewhat hackish approach to exclude *.ext_build_deps from
symlinks when creating the symlink forest. This is necessary in cases
where an entire directory is added to the includes, e.g. when setting
includes = ["."] where the directory itself contains a cmake_external()
rule that depends on the very rule containing the includes = ["."].

* Also avoid using a temp directory when bootstrapping make or cmake itself.

* Remove the ##tmpdir## shell toolchain command.

It is no longer necessary now that all its uses are gone.

Co-authored-by: Lauri Peltonen <lape@iki.fi>
2021-02-05 13:29:07 +00:00
..
BUILD Added bzl_libraries for stardoc support (#453) 2021-01-22 14:25:49 +00:00
cmake_build.bzl Build under Bazel sandbox instead of /tmp (#479) 2021-02-05 13:29:07 +00:00
install_ws_dependency.bzl Added deprecation notice to install_ws_dependency (#496) 2021-02-04 23:12:29 +00:00
make_build.bzl Build under Bazel sandbox instead of /tmp (#479) 2021-02-05 13:29:07 +00:00
ninja_build.bzl Made buildifier checks more aggressive (#485) 2021-02-02 20:09:33 +00:00
repositories.bzl Wrap dependencies in a maybe macro (#468) 2021-01-25 10:31:30 +00:00