aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Refactor FileArtifactValue and ArtifactValue now that presence of mtime and ↵Gravatar Janak Ramakrishnan2016-08-01
| | | | | | | digest are mutually exclusive. -- MOS_MIGRATED_REVID=128843642
* Reducing visibility of @VisibleForTesting methods in JavaCompileAction.Gravatar Googler2016-08-01
| | | | | -- MOS_MIGRATED_REVID=128842811
* Add a way to set build configuration values (defines) on swift_library targets.Gravatar Dmitry Shevchenko2016-08-01
| | | | | -- MOS_MIGRATED_REVID=128838998
* Lazily construct NoSuchVariableException messageGravatar Michajlo Matijkiw2016-08-01
| | | | | | | Code typically doesn't use the message, so avoid creating it if we don't need to. -- MOS_MIGRATED_REVID=128837352
* Allow objc rule deps to include any rule that exports an "objc" provider.Gravatar Googler2016-08-01
| | | | | | | | | | | This change was motivated by a need to write pure Skylark rules that expose their own objc providers so they can be used as deps to other libraries/application targets (e.g., SceneKit/SpriteKit compiled resources, []) without having to whitelist them and wait for a Blaze release. This CL fixes what seems to be a bug in validateRuleDependency, where the behavior in the doc comment implies that it will accept a whitelisted rule name *or* a list of mandatory providers, but as implemented today it seems to require the rule to be whitelisted even if the mandatory native providers matched. RELNOTES: objc_* rules can now depend on any target that returns an "objc" provider. -- MOS_MIGRATED_REVID=128835096
* Sets SONAME on shared objects in Android binaries.Gravatar Adam Michael2016-08-01
| | | | | | | | | | | | | Adds a linker flag to set the internal DT_SONAME. This fixes #1578 for SDK 24 and removes the warnings for previous SDKs. There is no need to set the linker flag for android_librarys that depend on native code, because the linker flag will be set by the android_binarys that depend on that android_library. -- Change-Id: If6422f2c2677ec974a3682e3038d7fe159ed4978 Reviewed-on: https://bazel-review.googlesource.com/#/c/4210/ MOS_MIGRATED_REVID=128833820
* --Gravatar Googler2016-08-01
| | | | MOS_MIGRATED_REVID=128827694
* Use Error Prone's own plugin loading codeGravatar Liam Miller-Cushon2016-08-01
| | | | | | | also remove unused 'enabled' bit. -- MOS_MIGRATED_REVID=128823297
* Fix the description of allow_empty arg on string_list.Gravatar Dmitry Shevchenko2016-08-01
| | | | | | | * Previously the doc stated that the argument is deprecated and to use itself. -- MOS_MIGRATED_REVID=128822795
* Replace calls to SpawnAction$Builder#addInputs(NestedSet) with ↵Gravatar Liam Miller-Cushon2016-07-29
| | | | | | | addTransitiveInputs -- MOS_MIGRATED_REVID=128820723
* Add the jdk8 tag to the worker testGravatar Damien Martin-Guillerez2016-07-29
| | | | | | | This test should not be run with the JDK 7 since JavaBuilder for it does not support worker strategy. -- MOS_MIGRATED_REVID=128820130
* Mark experimental_ui_test as manual...Gravatar Damien Martin-Guillerez2016-07-29
| | | | | | | ...and do it correctly this time, so not loading_phase_tests. -- MOS_MIGRATED_REVID=128808204
* Fixed SkylarkDoc.getDocumentation to append a period to the doc string if it ↵Gravatar John Cater2016-07-29
| | | | | | | | | | | is missing. Fixes #1522. -- Change-Id: Ib94c1544cb0862f40beeeadb60780da1a47dfc66 Reviewed-on: https://bazel-review.googlesource.com/#/c/4042 MOS_MIGRATED_REVID=128807763
* Lift out the ResourceContainer -> arg/artifact functionsGravatar Googler2016-07-29
| | | | | | | | This way they can be shared with a resource merge spawn action builder (similar cmdline conventions). -- MOS_MIGRATED_REVID=128804575
* Fix Options::ParseCommandLine signature.Gravatar Sasha Smundak2016-07-29
| | | | | | | | | | | | | | Otherwise the following code: int main(int argc, char *argv[]) { options.ParseCommandLine(argc-11, argv+1); ... } does not compile ("cannot convert from ‘char**’ to ‘const char**’") -- MOS_MIGRATED_REVID=128803427
* workers: Use workers by default for Javac.Gravatar Philipp Wollermann2016-07-29
| | | | | | | RELNOTES: Persistent workers are now used by default for Java compilation in Bazel, which should speed up your Java builds by ~4x. You can switch back to the old behavior via --strategy=Javac=standalone. Check out http://www.bazel.io/blog/2015/12/10/java-workers.html for more details. -- MOS_MIGRATED_REVID=128801059
* Simplify immutability testGravatar Jon Brandvein2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128800280
* Move Skyframe page from doc/ to designs/.Gravatar David Chen2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128793556
* Revert "Sets SONAME on shared objects in Android binaries."Gravatar Damien Martin-Guillerez2016-07-29
| | | | | | | | This reverts commit e65876a28965c72f7a48a16be3390ba7c5c97a6f. This commit have not gone through the proper workflow. Fixes #1582.
* Move designs/ directory out of docs/ and into site root.Gravatar David Chen2016-07-29
| | | | | | | | | | | For versioning Bazel's documentation, we only want to version the pages under the Documentation portion of the site. Since Design Docs are more meant for Bazel developers and are generally not continually updated for each release, we should not version the design docs. Moving the directory for the design docs out of docs/ will also simplify the change for versioning Bazel's docs. -- MOS_MIGRATED_REVID=128788588
* Remove FileArtifactValue#createWithDigest method now that empty files are ↵Gravatar Janak Ramakrishnan2016-07-29
| | | | | | | always digested. -- MOS_MIGRATED_REVID=128768429
* Fix a broken linkGravatar Googler2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128755445
* Use correct layout for design docs pages.Gravatar David Chen2016-07-29
| | | | | | | Fixes #1545 -- MOS_MIGRATED_REVID=128751593
* Fix leftover "size" check when deciding whether to use digest or mtime. ↵Gravatar Janak Ramakrishnan2016-07-29
| | | | | | | | | Since we no longer stored mtime for empty files, this bug meant that we always compared empty files equal (which is good). But we shouldn't be using Metadata based on mtime for them. A follow-up change will do a refactor to make this impossible. -- MOS_MIGRATED_REVID=128742054
* Move Rule Pitfalls doc to Documentation.Gravatar David Chen2016-07-29
| | | | | | | Fixes #1544 -- MOS_MIGRATED_REVID=128736865
* Avoid intermediate Map/Collections in ActionExecutionFunctionGravatar Michajlo Matijkiw2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128731657
* MergeConflict: fix typo in error message string.Gravatar Googler2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128729088
* Rollforward of change that broke #1579 with test fix (need to specify ↵Gravatar Chris Parsons2016-07-29
| | | | | | | | | | | | | ios_sdk_version and xcode_version for our CI macs) *** Original change description *** Remove apple_binary's implicit output _lipo.a. This also removes the restriction that apple_binary targets must have at least one src file specified. -- MOS_MIGRATED_REVID=128721251
* executable attribute on apple_genrule, which allows users to run ↵Gravatar Chris Parsons2016-07-29
| | | | | | | | | apple_genrule targets on the command line. If an apple_genrule target is both executable and has more than one output, an error is thrown. -- MOS_MIGRATED_REVID=128714692
* Roll forward of commit 05c0bd286b3802ad3d7faf48bc19e86929a9cf6d:Gravatar Dmitry Shevchenko2016-07-29
| | | | | | | | | Include SwiftSupport directory into the IPA when an app contains Swift. * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128706028
* Fix private symbols, clean up load parsingGravatar Jon Brandvein2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128699330
* Rollback of commit 8643954b818547339e8055d0aa4867c1286ebca1.Gravatar Damien Martin-Guillerez2016-07-29
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke //src/test/shell/bazel:bazel_apple_test Fixes #1579 *** Original change description *** Remove apple_binary's implicit output _lipo.a. This also removes the restriction that apple_binary targets must have at least one src file specified. -- MOS_MIGRATED_REVID=128698089
* If the toolchain defines an action_config for each type of CppLinkAction,Gravatar Cal Peyser2016-07-29
| | | | | | | hardcoded action_configs are not used. -- MOS_MIGRATED_REVID=128695960
* Rollback of commit 3e8bcae69a0718cf6972be086706b1841e0ed6b7.Gravatar Damien Martin-Guillerez2016-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks design docs links *** Original change description *** Move Bazel docs into versioned directory. * Move all Bazel docs (excluding main page, search page, and blog) into versions/master directory. * Replace all original pages with redirects. * Add Jekyll config with default_version setting to specify the default version to redirect docs to. * Add Jekyll config with version_prefix setting specific to pages under each version directory. * Update layouts to generate links to pages for the same version with the version_prefix. * Update Blaze rel... *** -- MOS_MIGRATED_REVID=128690580
* Increase the shard count of //src/test/shell/bazel:bazel_test_testGravatar Damien Martin-Guillerez2016-07-29
| | | | | | | | | This test has some occasional timeout flakes. See http://ci.bazel.io/job/bazel-tests/BAZEL_VERSION=latest,PLATFORM_NAME=darwin-x86_64/148/console -- MOS_MIGRATED_REVID=128684898
* Make RedirectChaser behave properly if a referenced target is not found.Gravatar Lukacs Berki2016-07-29
| | | | | -- MOS_MIGRATED_REVID=128682147
* Release 0.3.1 (2016-07-29)Gravatar Bazel Release System2016-07-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baseline: 792a9d6 Cherry picks: + 25e5995: Rollback of commit a2770334ea3f3111026eb3e1368586921468710c. + 2479405: Fix NPE with unset maven_jar sha1 + 3cf2126: Rewrite the extra action info files if the data within them changes. + 5a9c6b4: JavaBuilder: Reintroduce the -extra_checks flag. Incompatible changes: - Removed predefined Python variable "generic_cpu". - Skylark rules: if you set "outputs" or an attribute to a function, this function must now list its required attributes as parameters (instead of an attribute map). - The host_platform and target_platform entries are not written to the master log anymore. - Bazel requires Hazelcast 3.6 or higher now for remote execution support, because we upgraded our client library and the protocol it uses is incompatible with older versions. New features: - LIPO context (--lipo_context) can now also be a cc_test (in addition to cc_binary) Important changes: - If --android_crosstool_top is set, native code compiled for android will always use --android_compiler and not --compiler in choosing the crosstool toolchain, and will use --android_cpu if --fat_apk_cpu is not set. - Add --instrument_test_targets option. - apple_binary supports a new platform_type attribute, which, if set to "watchos", will build dependencies for Apple's watchOS2. - objc_binary now supports late-loaded dynamic frameworks. - Native Swift rules no longer pull in module maps unconditionally. Use --experimental_objc_enable_module_maps for that. - Merged manifests are guaranteed to have the application element as the last child of the manifest element as required by Android N. - The Android manifest merger is now available as an option for android_binary rules. The merger will honor tools annotations in AndroidManifest.xml and will perform placeholder substitutions using the values specified in android_binary.manifest_values. The merger may be selected by setting the manifest_merger attribute on android_binary. - The progress message would not clear packages that need to be loaded twice. - Remove warning for high value of --jobs. - Use the correct build configuration for shared native deps during Android split transitions. - When building ObjectiveC++, pass the flag -std=gnu++11. - use xcrun simctl instead of iossim to launch the app for "blaze run". - Glob arguments 'exclude' and 'exclude_directories' must be named - Bazel no longer regards an empty file as changed if its mtime has changed.
* Merge branch 'master' of sso://bazel/bazelGravatar Adam Michael2016-07-28
|\
* | --Gravatar Carmi Grushko2016-07-28
| | | | | | | | MOS_MIGRATED_REVID=128663072
* | Avoid copying map when adding discovered inputs to action metadata.Gravatar Janak Ramakrishnan2016-07-28
| | | | | | | | | | -- MOS_MIGRATED_REVID=128641967
* | Rollback of commit 0fe34924b5e5282b5e2895761f11ad77bccebdba.Gravatar Alex Humesky2016-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Causes a dependency cycle for java targets: [] *** Original change description *** Enable the Java launcher by default -- MOS_MIGRATED_REVID=128638289
* | Remove apple_binary's implicit output _lipo.a.Gravatar Chris Parsons2016-07-28
| | | | | | | | | | | | | | This also removes the restriction that apple_binary targets must have at least one src file specified. -- MOS_MIGRATED_REVID=128633173
* | Rollback of commit 75714b0d6e65905e41da8415ca3e7ec101575d51.Gravatar Dmitry Shevchenko2016-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke Play Books tests *** Original change description *** Include SwiftSupport directory into the IPA when an app contains Swift. * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128627984
* | Add file:// support to bazel's new_http_archive rule.Gravatar Todd Jeffreys2016-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | This modifies HttpConnection.java to support other URLConnections besides simply HttpURLConnection. Supporting at least file://, and possibly ftp:// in theory. In the absence of AAR android support, this allows me to import a Google Play Services AAR library using a combination of new_http_archive from file://$ANDROID_SDK/... and a custom BUILD file that repackages it via android_library. I added a check against zero-sized files, but I'm not 100% sure it's required. -- MOS_MIGRATED_REVID=128621789
* | Include SwiftSupport directory into the IPA when an app contains Swift.Gravatar Dmitry Shevchenko2016-07-28
| | | | | | | | | | | | | | * To pass App Store validation, an app that contains Swift code must have a SwiftSupport directory at the root of the IPA. -- MOS_MIGRATED_REVID=128614279
* | Make enforce_constraints non-experimentalGravatar Liam Miller-Cushon2016-07-28
| | | | | | | | | | -- MOS_MIGRATED_REVID=128608801
* | Add a resource parsing action.Gravatar Googler2016-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Part of 3 proposed new actions: - parsing action - merging action - validating action Dependencies (directData and transitiveData) expect the symbol files. If the merge action produces the symbol files, then each merge action depends on each other. Instead, produce it in an action with just source resources as prereqs to allow more parallelism. Technically, we don't need a manifest as part of the parameters. I debated about whether to introduce a basic version of UnvalidatedAndroidData or not. -- MOS_MIGRATED_REVID=128599714
* | Initial checkin of the combiner classes.Gravatar Sasha Smundak2016-07-28
| | | | | | | | | | -- MOS_MIGRATED_REVID=128597707
* | Rename some PackageId and RepositoryName fields/methods in prep for deep ↵Gravatar Kristina Chodorow2016-07-28
| | | | | | | | | | | | | | | | | | | | | | | | | | execroot change This is in prep for making the execution root path for external repositories ../repo_name (instead of external/repo_name). Right now, the getRunfilesPath() returns that path, so that is renamed getExecRoot() (since the runfiles are really just a reflection of the execRoot structure). getSourceRoot() replaces getPathFragment, which has always been a confusing name (it's not clear from the name what the difference is between it and getPackageFragment()). It returns the relative path to source files for external repositories (external/repo_name). Also renamed/moved to more sensible class a few static RepositoryName fields. -- MOS_MIGRATED_REVID=128594419
* | Remove experimental_use_proguard_previous_obfuscation_map flag. This was ↵Gravatar Googler2016-07-28
| | | | | | | | | | | | | | removed from the global blazerc in unknown commit. -- MOS_MIGRATED_REVID=128591745