From 5a49584cb40a7a474dd2f275e7fedbe9e7ef3531 Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 22 Aug 2017 01:30:36 +0200 Subject: Correct documentation for --build_runfile_links. Its effects are not restricted to C++ binaries. RELNOTES: None. PiperOrigin-RevId: 165992270 --- site/docs/bazel-user-manual.html | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) (limited to 'site/docs') diff --git a/site/docs/bazel-user-manual.html b/site/docs/bazel-user-manual.html index 75be04a3d2..798e592f04 100644 --- a/site/docs/bazel-user-manual.html +++ b/site/docs/bazel-user-manual.html @@ -1894,24 +1894,22 @@ cores directly from system configuration and will assume 1.0 I/O resource.

- This option, which is currently enabled by default, specifies - whether the runfiles symlinks for tests and - cc_binary targets should be built in the output directory. + This option, which is enabled by default, specifies whether the runfiles + symlinks for tests and binaries should be built in the output directory. Using --nobuild_runfile_links can be useful to validate if all targets compile without incurring the overhead for building the runfiles trees. - Within Bazel's output tree, the - runfiles symlink tree is typically rooted as a sibling of the corresponding - binary or test.

- When tests (or applications) are executed, their - run-time data dependencies are gathered together in one place, and - may be accessed by the test using paths of the form + When tests (or applications) are executed, their run-time data + dependencies are gathered together in one place. Within Bazel's + output tree, this "runfiles" tree is typically rooted as a sibling of + the corresponding binary or test. + During test execution, runfiles may be accessed using paths of the form $TEST_SRCDIR/workspace/packagename/filename. - The "runfiles" tree ensures that tests have access to all the files + The runfiles tree ensures that tests have access to all the files upon which they have a declared dependence, and nothing more. By default, the runfiles tree is implemented by constructing a set of symbolic links to the required files. As the set of links grows, so @@ -1919,16 +1917,6 @@ cores directly from system configuration and will assume 1.0 I/O resource. contribute significantly to overall build time, particularly because each individual test (or application) requires its own runfiles tree.

-

- The --build_runfile_links flag controls the - construction of the tree of symbolic links (for C++ applications and - tests only). The reasons only C++ non-test rules are affected are numerous - and subtle: C++ builds are more likely to be slower due to runfiles; - no C++ host tools (tools that run during the build) need their runfiles, - so this option can be used by the host configuration; and other rules - (notably Python) need their runfiles for other purposes besides test - execution. -

--[no]discard_analysis_cache

-- cgit v1.2.3