Make deps directory be called differently for each library (#100)
otherwise during test execution too much is accumulated in that same directory, and CMake gives up after searching in some amount of that subdirectories, and tests blink
This commit is contained in:
parent
af3f3e0618
commit
94d95ec85b
|
@ -185,14 +185,14 @@ def cc_external_rule_impl(ctx, attrs):
|
|||
"set_platform_env_vars",
|
||||
"export EXT_BUILD_ROOT=$BUILD_PWD",
|
||||
"export BUILD_TMPDIR=$(mktemp -d)",
|
||||
"export EXT_BUILD_DEPS=$EXT_BUILD_ROOT/bazel_foreign_cc_deps",
|
||||
"export EXT_BUILD_DEPS=$EXT_BUILD_ROOT/bazel_foreign_cc_deps_" + lib_name,
|
||||
"mkdir -p $EXT_BUILD_DEPS",
|
||||
"export INSTALLDIR=$EXT_BUILD_ROOT/" + outputs.installdir.path,
|
||||
"mkdir -p $INSTALLDIR",
|
||||
"echo \"Environment:______________\"",
|
||||
"env",
|
||||
"echo \"__________________________\"",
|
||||
"trap \"{ rm -rf $BUILD_TMPDIR $EXT_BUILD_ROOT/bazel_foreign_cc_deps; }\" EXIT",
|
||||
"trap \"{ rm -rf $BUILD_TMPDIR $EXT_BUILD_ROOT/bazel_foreign_cc_deps_" + lib_name + "; }\" EXIT",
|
||||
"\n".join(_copy_deps_and_tools(inputs)),
|
||||
"define_absolute_paths $EXT_BUILD_ROOT/bin $EXT_BUILD_ROOT/bin",
|
||||
"pushd $BUILD_TMPDIR",
|
||||
|
|
Loading…
Reference in New Issue