diff options
3 files changed, 11 insertions, 11 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcBinaryRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcBinaryRule.java index df577ad7d9..ecb7c4fb31 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcBinaryRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcBinaryRule.java @@ -47,7 +47,7 @@ public final class BazelCcBinaryRule implements RuleDefinition { .setImplicitOutputsFunction(BazelCppRuleClasses.CC_BINARY_IMPLICIT_OUTPUTS) /*<!-- #BLAZE_RULE(cc_binary).ATTRIBUTE(linkshared) --> Create a shared library. - To enable this attribute, include <code>linkshared=1</code> in your rule. By default + To enable this attribute, include <code>linkshared=True</code> in your rule. By default this option is off. If you enable it, you must name your binary <code>lib<i>foo</i>.so</code> (or whatever is the naming convention of libraries on the target platform) for some sensible value of <i>foo</i>. @@ -63,9 +63,9 @@ public final class BazelCcBinaryRule implements RuleDefinition { instead. </p> <p> - If you specify both <code>linkopts=['-static']</code> and <code>linkshared=1</code>, + If you specify both <code>linkopts=['-static']</code> and <code>linkshared=True</code>, you get a single completely self-contained unit. If you specify both - <code>linkstatic=1</code> and <code>linkshared=1</code>, you get a single, mostly + <code>linkstatic=1</code> and <code>linkshared=True</code>, you get a single, mostly self-contained unit. </p> <!-- #END_BLAZE_RULE.ATTRIBUTE -->*/ diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcImportRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcImportRule.java index a3ed66e865..ac479685ca 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcImportRule.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCcImportRule.java @@ -95,7 +95,7 @@ cc_import( ) </pre> -4. Linking a shared library with <code>system_provided=1</code> (Windows) +4. Linking a shared library with <code>system_provided=True</code> (Windows) <pre class="code"> cc_import( name = "mylib", diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java index 9dc21c2f54..81f87d66db 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java @@ -420,21 +420,21 @@ public class BazelCppRuleClasses { <li> MOSTLY STATIC, in which all user libraries are linked statically (if a static version is available), but where system libraries are linked dynamically, e.g. "<code>gcc foo.o libfoo.a libbaz.a -lm</code>".<br/> - This mode is enabled by specifying <code>linkstatic=1</code>.</li> + This mode is enabled by specifying <code>linkstatic=True</code>.</li> <li> DYNAMIC, in which all libraries are linked dynamically (if a dynamic version is available), e.g. "<code>gcc foo.o libfoo.so libbaz.so -lm</code>".<br/> - This mode is enabled by specifying <code>linkstatic=0</code>.</li> + This mode is enabled by specifying <code>linkstatic=False</code>.</li> </ul> <p> The <code>linkstatic</code> attribute has a different meaning if used on a <a href="${link cc_library}"><code>cc_library()</code></a> rule. - For a C++ library, <code>linkstatic=1</code> indicates that only - static linking is allowed, so no <code>.so</code> will be produced. linkstatic=0 does not - prevent static libraries from being created. The attribute is meant to control the + For a C++ library, <code>linkstatic=True</code> indicates that only + static linking is allowed, so no <code>.so</code> will be produced. linkstatic=False does + not prevent static libraries from being created. The attribute is meant to control the creation of dynamic libraries. </p> <p> - If <code>linkstatic=0</code>, then the build tool will create symlinks to + If <code>linkstatic=False</code>, then the build tool will create symlinks to depended-upon shared libraries in the <code>*.runfiles</code> area. </p> <!-- #END_BLAZE_RULE.ATTRIBUTE -->*/ @@ -560,7 +560,7 @@ public class BazelCppRuleClasses { which is an empty library so the binary ends up using libc malloc. This label must refer to a <code>cc_library</code>. If compilation is for a non-C++ rule, this option has no effect. The value of this attribute is ignored if - <code>linkshared=1</code> is specified. + <code>linkshared=True</code> is specified. </p> <!-- #END_BLAZE_RULE.ATTRIBUTE -->*/ .add( |