aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
...
* Rollback of commit a6b4cbbd4a4bbb42eefe8fb0e646cd30780394e4.Gravatar Laszlo Csomor2016-10-04
| | | | | | | | | | | | | | | *** Reason for rollback *** Other projects may depend on Ijar without wanting to depend on Bazel. *** Original change description *** Ijar: use utilities from Bazel's source Remove a duplicate implementation of JoinPath. -- MOS_MIGRATED_REVID=135088616
* Rollback of commit fb65f9382f34c2641b5069c30a57a08445b920a3.Gravatar Laszlo Csomor2016-10-04
| | | | | | | | | | | | | | | *** Reason for rollback *** Other projects may depend on Ijar without wanting to depend on Bazel. *** Original change description *** Ijar: use more utilities from Bazel's source Remove duplicate implementations from zip_main.cc -- MOS_MIGRATED_REVID=135086722
* Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-04
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135053864
* Add a way to select non-default Xcode toolchainGravatar Dmitry Shevchenko2016-10-04
| | | | | | | | | * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135033093
* Update comments about depending on the tools/objc:compile_protos and ↵Gravatar Sergio Campama2016-10-04
| | | | | | | tools/objc:proto_support targets, which is no longer true. -- MOS_MIGRATED_REVID=135007852
* Implemented a "--experimental_repository_cache" option as the first step toGravatar Jingwen Chen2016-10-04
| | | | | | | | | caching external repositories (go/bazel-cache) The option is categorized as hidden because it is a no-op. -- MOS_MIGRATED_REVID=135006114
* Move some sharable classes from c.g.testing.junit.runner.junit4 toGravatar Googler2016-10-04
| | | | | | | | c.g.testing.junit.junit4.runner.internal or c.g.testing.junit.junit4.runner.internal.junit4 -- MOS_MIGRATED_REVID=135003685
* Propagate --java_header_compilation into the host configGravatar Liam Miller-Cushon2016-10-04
| | | | | -- MOS_MIGRATED_REVID=134987063
* Fix non-deterministic bug in locking of iterable valuesGravatar Jon Brandvein2016-10-04
| | | | | | | | The bug is due to hash collisions where an absolute identity comparison is needed. -- MOS_MIGRATED_REVID=134976540
* Remove an unused function.Gravatar Googler2016-10-04
| | | | | -- MOS_MIGRATED_REVID=134911713
* Rollback of commit 3c0d64886d2f7f6b2015780f1628b1391c320d0f.Gravatar Carmi Grushko2016-10-04
| | | | | | | | | | | | | *** Reason for rollback *** Blaze with this CL breaks ~all targets: "There is already a built-in attribute 'name' which cannot be overridden." *** Original change description *** Proper error messages when built-in rule attributes are overridden #1811 -- MOS_MIGRATED_REVID=134857179
* Add genfiles to include paths to allow full-path imports of generated protosGravatar Googler2016-10-04
| | | | | -- MOS_MIGRATED_REVID=134840789
* Extend Android Java 8 desugaring flag to host configuration. While we're at it,Gravatar Googler2016-10-04
| | | | | | | also allow incremental dexing in host configuration. -- MOS_MIGRATED_REVID=134838429
* Remove dependency on $unzip for aar_import. Replaces the functionality with ↵Gravatar Adam Michael2016-10-04
| | | | | | | //third_party/ijar/zipper. -- MOS_MIGRATED_REVID=134827924
* Unify AbstractBlazeQueryEnvironment#evaluateQuery with its subclass ↵Gravatar Nathan Harmata2016-10-04
| | | | | | | overrides. Also, have AbstractBlazeQueryEnvironment#evaluateQuery take an OutputFormatterCallback instance rather than a Callback instance. This is more sensible since the latter is only intended to be used intra-query, while the former is intended for usage in end-to-end query evaluation. This lets us slightly simplify QueryCommand, by shifting the responsibility for managing the OutputFormatterCallback to AbstractBlazeQueryEnvironment#evaluateQuery. -- MOS_MIGRATED_REVID=134827588
* Return EMTPY_FRAGMENT instead of null when there is no filename for a Lexer. ↵Gravatar John Cater2016-10-04
| | | | | | | | | Fixes #1865. -- Change-Id: I29ad4eab2c0fbf543989029429449c5023f3b065 Reviewed-on: https://bazel-review.googlesource.com/#/c/6350 MOS_MIGRATED_REVID=134824338
* Use ijar:zipper instead of zipinfo for zip_manifest_creator.sh.Gravatar Adam Michael2016-10-04
| | | | | | | Also, explicitly puts tools/zip:zipper and tools/zip:zip_manifest_creator.sh into BUILD.tools because they are only used from within @build_tools. -- MOS_MIGRATED_REVID=134824173
* Proper error messages when built-in rule attributes are overridden #1811Gravatar Vladimir Moskva2016-10-04
| | | | | -- MOS_MIGRATED_REVID=134823021
* Default host configuration's --fat_apk_cpu to the empty list.Gravatar Greg Estren2016-10-04
| | | | | | | It doesn't make sense to split a host Android rule's deps down fat APK settings. -- MOS_MIGRATED_REVID=134814698
* Fix NPE in skylark documentation processorGravatar Jon Brandvein2016-10-04
| | | | | | | | Crash was triggered by overriding a @SkylarkCallable without repeating the annotation in the subclass's method. -- MOS_MIGRATED_REVID=134797463
* Ijar: use more utilities from Bazel's sourceGravatar Laszlo Csomor2016-10-04
| | | | | | | Remove duplicate implementations from zip_main.cc -- MOS_MIGRATED_REVID=134797116
* Implement Skylark syntax to propagate an aspect to all attributes.Gravatar Dmitry Lomov2016-10-04
| | | | | -- MOS_MIGRATED_REVID=134793032
* Add a build-event streamer classGravatar Klaus Aehlig2016-10-04
| | | | | | | | | | | | | The BuildEventStreamer will listen for BuildEvents and stream them to the provided transports. It also ensures events are properly chained: for unsolicited events, it will add progress events to chain them and at the end of a build it closes all announced but not produced events as aborted. -- Change-Id: I623b582657573fe1288821c96f084e0ab0bca4d4 Reviewed-on: https://bazel-review.googlesource.com/#/c/6275 MOS_MIGRATED_REVID=134787541
* Adds SingleJar APK building option behind --use_singlejar_apkbuilder flag.Gravatar Adam Michael2016-10-04
| | | | | | | | | Default is off (using ApkBuilderMain still). Note that --use_singlejar_apkbuilder is incompatible with --apk_signing_method=legacy_v1 (but compatible with --apk_signing_method={v1,v2,v1_v2}). -- MOS_MIGRATED_REVID=134783504
* cc_inc_library deletes its output directory before execution.Gravatar Janak Ramakrishnan2016-10-04
| | | | | | | | | | | | This ensures that stale outputs from prior builds do not remain to confuse the compiler. Fixes #1778. -- Change-Id: I31b5c3e7e5970cf45c3ff10144ddfc73540ef9af Reviewed-on: https://bazel-review.googlesource.com/6250 MOS_MIGRATED_REVID=134780501
* Ijar: use utilities from Bazel's sourceGravatar Laszlo Csomor2016-09-30
| | | | | | | Remove a duplicate implementation of JoinPath. -- MOS_MIGRATED_REVID=134778185
* Silence the warning about Javac not supporting workers during bootstrap by ↵Gravatar Philipp Wollermann2016-09-30
| | | | | | | renaming the action mnemonic in the Java Skylark rules to JavacBootstrap. -- MOS_MIGRATED_REVID=134776087
* Do not write terminal output in the experimental UI character-by-character ↵Gravatar Lukacs Berki2016-09-30
| | | | | | | | | (which results in single-character gRPC messages). Fixes #1861. -- MOS_MIGRATED_REVID=134775680
* If Label syntax is wrong, actual offense is now reported in error message.Gravatar Andreas Bergmeier2016-09-30
| | | | | | | | Closes #1633. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1633 MOS_MIGRATED_REVID=134774446
* experimental_objc_library always creates a module map, to be consistent with ↵Gravatar Cal Peyser2016-09-30
| | | | | | | objc_library. -- MOS_MIGRATED_REVID=134773363
* mark-down fix: use sh as lexer instead of unkown shellGravatar Klaus Aehlig2016-09-30
| | | | | | | -- Change-Id: I12cc96ee23e5a35d197e867813dfcedf3620b536 Reviewed-on: https://bazel-review.googlesource.com/#/c/6339 MOS_MIGRATED_REVID=134773226
* Ijar: make some targets compilable with MSVCGravatar Laszlo Csomor2016-09-30
| | | | | | | | Particulary third_party/ijar:{zip,zlib_client} now compile with --cpu=x64_windows_msvc. -- MOS_MIGRATED_REVID=134771232
* Fix #1849: Sandboxing on OS X should be turned off by default for 0.3.2.Gravatar Philipp Wollermann2016-09-30
| | | | | | | | | | | | This restructures the way we set the default Spawn strategy so that each BlazeModule supplying a SpawnActionContext has an ActionContextConsumer that sets its own SpawnActionContext as the default, with the BazelRulesModule being put as the last module loaded in BazelMain, so that it can override that decision - it only does, if the user explicitly specifies a --spawn_strategy flag. IMHO this is a much saner approach than the older one. So the flow is essentially this: - StandaloneActionContextConsumer sets the default strategy to "standalone". - SandboxActionContextConsumer sets the default strategy to "sandboxed", but only on Linux - BazelRulesModule sets the default strategy to the value of the --spawn_strategy flag, if it is set. -- MOS_MIGRATED_REVID=134770427
* Rollback of commit c5545fd0896f3c602a9be0986debed6f0c9c662d.Gravatar Klaus Aehlig2016-09-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with appropriate fixes: --action_env is a "build" option, not a "common" option. Moreover, also inherit the corresponding variables for tests from the effective action environment. Also fix the corresponding error in the design document. *** Original change description *** Automated [] rollback of commit 96d46280bc5a4803ba2242a4ad16939f85a3b212. *** Reason for rollback *** Broke installation on latest release. Fixes #1846 *** Original change description *** Reintroduce .bazelrc and set --action_env defaults Shipping a .bazelrc was removed in 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. However, as per our "Specifying environment variables for actions" design document, we want to ship a global rc file specifying the common environment variables to be inherited. So revert that change and add the desired entries to the global bazelrc file we're shipping. *** -- MOS_MIGRATED_REVID=134769063
* Add type annotation for the benefit of java 7Gravatar Klaus Aehlig2016-09-30
| | | | | | | Fixes #1863 -- MOS_MIGRATED_REVID=134767527
* sandbox: Replace the error-prone lazy cleanup of sandbox directories by a ↵Gravatar Philipp Wollermann2016-09-30
| | | | | | | | | simple synchronous cleanup. Tested with bazel building itself that this does not result in a performance degradation. -- MOS_MIGRATED_REVID=134766597
* Add visibility to ↵Gravatar Yun Peng2016-09-30
| | | | | | | | | //src/tools/android/java/com/google/devtools/build/android/dexer:srcs Fix https://github.com/bazelbuild/bazel/issues/1864 -- MOS_MIGRATED_REVID=134762013
* cpp: integrate Init() into the StartupOptions constructorGravatar Thiago Farina2016-09-30
| | | | | | | | | | | This patch integrates the code of Init() function into StartupOptions's constuctor and thus fixing the TODO in startup_options.cc. -- Change-Id: Ic041306387f5ef82fa80d8511c3e9b7be706754a Reviewed-on: https://bazel-review.googlesource.com/#/c/6332/2 MOS_MIGRATED_REVID=134759417
* Use minimum OS flags for watchOS and tvOS actions.Gravatar Chris Parsons2016-09-30
| | | | | | | | | | | | Also: - Move minimum os information into AppleConfiguration - Update watchos and tvos minimum version defaulting behavior such that, if unspecified in flags, the minimum OS is equal to the SDK version. - Expose Apple Platform to apple_common in skylark -- MOS_MIGRATED_REVID=134712763
* Skip the bazel_toolchain_test on Darwin machine. Fixes #1838.Gravatar Xin Gao2016-09-30
| | | | | -- MOS_MIGRATED_REVID=134701835
* Initial check-in of apple_static_library ruleGravatar Chris Parsons2016-09-30
| | | | | | | RELNOTES: apple_static_library rule to create multi-architecture static archive files from Objc/C++/Swift dependencies on apple platforms -- MOS_MIGRATED_REVID=134701599
* Rollback of commit 0d36f410370ed99cbd57359d7444269faec134f8.Gravatar Alex Humesky2016-09-30
| | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Windows protoc compiler fixed: https://github.com/bazelbuild/bazel/issues/1856 *** Original change description *** Automated [] rollback of commit a12aae73ee292fdcb170f4eaeb8939283d05383c. *** Reason for rollback *** Breaks Bazel Windows Bootstrap Fix https://github.com/bazelbuild/bazel/issues/1851 *** Original change description *** Updates protobuf in bazel to version 3.0.0. -- MOS_MIGRATED_REVID=134699683
* When add_dep should wrap a missing dependency in a rule (e.g., ↵Gravatar Carmi Grushko2016-09-30
| | | | | | | java_proto_library), pass it the kind of the rule. -- MOS_MIGRATED_REVID=134694958
* Open source dex merging tools for incremental dexing.Gravatar Adam Michael2016-09-30
| | | | | | | | Tested with bazel build --incremental_dexing_binary_types=monodex,multidex_unsharded,multidex_sharded -- //examples/android/java/bazel:hello_world -- MOS_MIGRATED_REVID=134690103
* Export idl_import_root to Android Studio, so that we know the packages of ↵Gravatar Googler2016-09-30
| | | | | | | new AIDL files in relation to their location. -- MOS_MIGRATED_REVID=134687843
* Lazily evaluate hash codes for ConfiguredTargetFunction#AttributeAndLabel.Gravatar Greg Estren2016-09-30
| | | | | | | | | | Profiling shows this shaves off 8% of getDynamicConfigurations' CPU time. And brings down AttributeAndLabel instantiation from 30% of that time to 24%. Over a simple cc_binary, this reduces the number of Objects.hash calls by 96%. -- MOS_MIGRATED_REVID=134687748
* Add an actions provider for testing Skylark rules.Gravatar Jon Brandvein2016-09-30
| | | | | | | The new provider gathers actions generated by any Skylark-based RuleConfiguredTarget, so long as the rule definition has _skylark_test=True set. For the moment this flag is under the user's control, but the intention is that it will be set by a test runner. -- MOS_MIGRATED_REVID=134687396
* Move some RegExTestCaseFilter from c.g.testing.junit.runner.junit4 toGravatar Googler2016-09-30
| | | | | | | c.g.testing.junit.junit4.runner. -- MOS_MIGRATED_REVID=134685188
* Don't force PrintStream on streaming output formattersGravatar Michajlo Matijkiw2016-09-30
| | | | | | | | Usually an OutputStream will do. Forgo the extra layer of indirection and stream directly to the output. -- MOS_MIGRATED_REVID=134682243
* ConfiguredTargetFunction#getDynamicConfigurations: halve the number of ↵Gravatar Greg Estren2016-09-30
| | | | | | | | | | | | | | | | AttributeAndLabel instantiations. This shaves 25% off the method's execution time in --experimental_dynamic_configs=notrim mode. This isn't a crucial optimization, since getDynamicConfigurations is already fast. Profiling: $ bazel shutdown; bazel build --nobuild //testapp:cc --experimental_dynamic_configs=notrim shows getDynamicConfigurations takes 1.3% of the analysis phase's CPU time before this change and 1.0% after. Before this change, AttributeAndLabel instantiation took 44% of the method's CPU time. After: 30%. Profiling done with JProfiler. -- MOS_MIGRATED_REVID=134677107