aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Fixed broken link in the documentation.Gravatar Florian Weikert2016-04-25
| | | | | -- MOS_MIGRATED_REVID=120695090
* Write the server.pid file from C++ instead of Java.Gravatar Lukacs Berki2016-04-25
| | | | | | | This is because OsUtils.getpid() cannot work under msys2 since java.exe is not an msys2 binary. We might make it work by including JNI code, but the current plan is to go without JNI on Windows. -- MOS_MIGRATED_REVID=120694746
* Extend API to add interface-only deps.Gravatar Googler2016-04-25
| | | | | -- MOS_MIGRATED_REVID=120690977
* Make the server tell not only the port, but also the address it is listening on.Gravatar Lukacs Berki2016-04-25
| | | | | | | This is necessary because on Windows/msys2, the Java gRPC server listens only on IPv6 but the C++ client only tries to connect over IPv4, resulting in breakage. -- MOS_MIGRATED_REVID=120689437
* Updated javadoc that was invalidated by commit ↵Gravatar Florian Weikert2016-04-25
| | | | | | | 0dbe07f017d391aba0613b4e6ca1503b62382ccd -- MOS_MIGRATED_REVID=120687334
* ExperimentalEventHandler: narrow synchronization blocksGravatar Klaus Aehlig2016-04-25
| | | | | | | | | | | In particular, do not own a lock while waiting for another thread---especially not the update thread that might be waiting for the very lock were holding. -- Change-Id: I46aef3585b712e25cd4317004eacd8b48557a341 Reviewed-on: https://bazel-review.googlesource.com/#/c/3462 MOS_MIGRATED_REVID=120686232
* Failing tests on Windows shouldn't fail the build.Gravatar Dmitry Lomov2016-04-25
| | | | | | | Helps with #1182. -- MOS_MIGRATED_REVID=120686181
* Fixes the bazel_apple_testGravatar Dmitry Shevchenko2016-04-25
| | | | | | | | | | Instead of default SDK version, use currently installed one. Fixes #1184. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1186 MOS_MIGRATED_REVID=120685979
* Make the PID be the contents of the PID file instead of a symlink.Gravatar Lukacs Berki2016-04-25
| | | | | | | I wonder why it was implemented like this in the first place. Unsurprisingly, it doesn't work on Windows. -- MOS_MIGRATED_REVID=120682316
* Make --target_label and --rule_kind optionalGravatar Liam Miller-Cushon2016-04-25
| | | | | | | | This is consistent with JavaBuilder. Some actions (e.g. resource compilations) don't set these flags. -- MOS_MIGRATED_REVID=120590777
* Always output entitlements plist in the XML formatGravatar Googler2016-04-25
| | | | | | | Adding --extra_entitlements flag to a build triggers a merge of entitlements files using plmerge tool. Configure build rules to output the resulting plist file in the XML format. Bundles signed with entitlements in the binary format fail to load on device. -- MOS_MIGRATED_REVID=120588271
* Add a --legacy_external_runfiles optionGravatar Kristina Chodorow2016-04-25
| | | | | | | | This isn't hooked up to anything yet, but is another piece of getting #848 rolled forward. -- MOS_MIGRATED_REVID=120582973
* Release 0.2.2b (2016-04-22)Gravatar Bazel Release System2016-04-25
| | | | | | | | | | | | | | | | | | | | | | | Baseline: 759bbfe Cherry picks: + 1250fda: Rollback of commit 351475627b9e94e5afdf472cbf465f49c433a25e. + ba8700e: Correctly set up build variables for the correct pic mode for fake_binary rules. + 386f242: Automated [] rollback of commit 525fa71b0d6f096e9bfb180f688a4418c4974eb4. + 97e5ab0: Fix cc_configure include path for Frameworks on OS X. + a20352e: cc_configure: always add -B/usr/bin to the list of gcc option + 0b26f44: cc_configure: Add piii to the list of supported cpu_value + 3e4e416: cc_configure: uses which on the CC environment variable + aa3dbd3: cc_configure.bzl: strip end of line when looking for the cpu + 810d60a: cc_configure: Add -B to compiler flag too Patch release, only includes fixes to C++ auto-configuration.
* cc_configure: Add -B to compiler flag tooGravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | On some target platform gcc invokes external tools during compilation, see #1152. Also support absolute path when looking for gcc. This needs to be cherry-picked to fix #1177. -- MOS_MIGRATED_REVID=120581887
* Add a Skylark rule to build Swift modules.Gravatar Dmitry Shevchenko2016-04-22
| | | | | | | | * Adds a swift_library rule that produces a (.a, .swiftmodule) pair. It can handle dependencies between modules and can be used as a dependency of objc_binary. * Does not work with Objective-C yet. -- MOS_MIGRATED_REVID=120578875
* Add a "Cherry picks" line to the release notesGravatar Kristina Chodorow2016-04-22
| | | | | | | | I was confused about the bulleted list on 0.2.2, so I figured it would be nice tell people what the commit list is. -- MOS_MIGRATED_REVID=120577721
* Wire up --host_java_toolchainGravatar Liam Miller-Cushon2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120574676
* Clean up launcher attributeGravatar Liam Miller-Cushon2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120567604
* Fix target parsing bug with targets in the empty package (e.g. "blah" was ↵Gravatar Nathan Harmata2016-04-22
| | | | | | | | | | | | | incorrectly not being parsed as "//:blah"). Also add tests for parsing absolute labels in the empty package. The empty package has been a thing in Bazel for a while now. Note that the old error message in this case "couldn't determine target for filename 'blah'" was almost always misleading and unhelpful since we were (almost certainly incorrectly) assuming the user intended for 'blah' to be an input file in the empty package. Now the error message would be "no such target '//:blah'") which is similarly misleading and unhelpful but probably marginally less so. If we desire to improve this, a future cleanup can introduce smarter error messages. -- MOS_MIGRATED_REVID=120566819
* cpp: keep the documentation of MakeAbsolute() function up-to-dateGravatar Thiago Farina2016-04-22
| | | | | | | | | | | | | | commit 2ad804cef42f: ("Fixed bugs blocking bazel shell test on Windows"), updated the documentation in blaze_util.cc but forgot to update the same doc comment in the header file. To prevent this from happening again, this copies the added sentence to the header file and deletes the documentation from the source file. -- Change-Id: I240b3a31d7b457ef4d50558f1ca54619666b8d2c Reviewed-on: https://bazel-review.googlesource.com/#/c/3470 MOS_MIGRATED_REVID=120561630
* Bind path to xcrunwrapper in workspace files.Gravatar Cal Peyser2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120558192
* Check for additions to the directory in new_local_repositoryGravatar Kristina Chodorow2016-04-22
| | | | | | | | | | Fixes #806. RELNOTES: External repository correctness fix: adding a new file/directory as a child of a new_local_repository is now noticed. -- MOS_MIGRATED_REVID=120557511
* Make suffix a PathFragmentGravatar Kristina Chodorow2016-04-22
| | | | | | | | | Breaking up the runfiles tree change into some smaller changes this time around. First step of rolling forward #848. -- MOS_MIGRATED_REVID=120553288
* Make aspects work through bind(). Gravatar Lukacs Berki2016-04-22
| | | | | | | | | | | bind() is assumed to be able to provide any provider. This is suboptimal, but beats the alternative of traversing the dependency graph to an arbitrary depth. The reason for the removal of the iteration ability in TransitiveInfoCollection is that now aspects can be attached to BindConfiguredTarget, too, which is not a RuleConfiguredTarget. Whereas I could have implemented the iterator, it was used only in BindConfiguredTarget anyway, so there didn't seem to be much reason to. Some work towards #952. -- MOS_MIGRATED_REVID=120549877
* Run our first test on Windows.Gravatar Dmitry Lomov2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120545193
* Make ConstraintSemantics.java compile again with all supported JDKs.Gravatar Lukacs Berki2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120540937
* Fix the release tests after rollback of commit ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | 9e4c78fb5752fa554db82815f7336255831a95ab -- MOS_MIGRATED_REVID=120540000
* Remove FileProvider.label.Gravatar Ulf Adams2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120539626
* Skylark aspects should always output to bin directory.Gravatar Dmitry Lomov2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120539216
* Register instances instead of classes as Skylark-visible globals.Gravatar Dmitry Lomov2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120538736
* Automated [] rollback of commit 857cda2c45a5cc68c3fa398311c48c571a64915d and ↵Gravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | commit 790d2f6009d47fe92cf0cd92a1473bbf0141f32e. *** Reason for rollback *** Broke non-Bazel projects on ci.bazel.io Fixes #1168 *** Original change description *** Move the runfiles for external repositories to under the x.runfiles/ directory This also sets the Bazel workspace name to io_bazel_source. Fixes #848. Relevant to #1116, #1124, RELNOTES[INC]: All repositories are now directly under the x.runfiles directory in the runfiles tree (previously, external repositories were at x.runfiles/main-repo/external/other-repo. This simplifies handling remote repository runfiles considerably, but will break existing references to external repository runfiles.... *** -- MOS_MIGRATED_REVID=120535721
* Remove all internal calls to FileProvider.getLabel.Gravatar Ulf Adams2016-04-22
| | | | | | | | The method will be removed in a subsequent change to facilitate reverting the change in case it goes bad. -- MOS_MIGRATED_REVID=120526894
* Add android deploy info.Gravatar Googler2016-04-22
| | | | | | | | | | | | Each android binary build operation will output a deploy info proto providing information about how to deploy and launch the APK. The information will vary between build mode (normal, mobile-install, split-apk) and is configuration-dependent. NO_SQ: Presubmit broken -- MOS_MIGRATED_REVID=120494036
* Add JavaSemantics.checkRule to Android rules.Gravatar Greg Estren2016-04-22
| | | | | -- MOS_MIGRATED_REVID=120480051
* Actions for rules that do not have 'use_header_modules' enabled should not haveGravatar Manuel Klimek2016-04-22
| | | | | | | header modules as inputs. -- MOS_MIGRATED_REVID=120473286
* Don't resolve --java_launcher for targets that opt outGravatar Liam Miller-Cushon2016-04-22
| | | | | | | | | If a target uses its launcher attribute to override --java_launcher, that should also override the value of :java_launcher. The default value of --java_launcher may not be compatible with the target architecture. -- MOS_MIGRATED_REVID=120473209
* Flush output before exitingGravatar Liam Miller-Cushon2016-04-22
| | | | | | | | Explicitly close the PrintWriter before exiting, calling write(String) on an auto-flushing PrintWriter doesn't flush the output. -- MOS_MIGRATED_REVID=120473105
* Make constraints and select() work well with each other.Gravatar Greg Estren2016-04-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements most of a design proposal that splits constraint checking into two pieces: *static* checks, which apply the standard constraint checking done today, and *refined* checks, which selectively prune environments based on select paths and check that not every environment gets pruned out. As a result of this change, dependencies like: java_library( name = "lib", restricted_to = [":A", ":B"], deps = select({ ":config_a": [":depA"], ":config_b": [":depB"], })) java_library( name = "depA", restricted_to = [":A"]) java_library( name = "depB", restricted_to = [":B"]) are allowed. Specifically, even though neither "depA" nor "depB" supports [":A", ":B"], the combination of the two does. So the select as a whole supports all environments declared in lib, even though only one of those environments actually gets chosen for a given build. Refinement makes lib "match" the chosen path. So for "config_a" builds, lib's environment set is "refined" down to [":A"], meaning [":B"]-restricted rules cannot depend on it. Likewise, for "config_b" builds, lib's environment set is "refined" down to [":B"], meaning [":A"]-restricted rules cannot depend on it. This guarantees that the restrictions imposed by the chosen select path propagate faithfully up the dependency chain. See new documentation in ConstraintSemantics.java for more details. -- MOS_MIGRATED_REVID=120464241
* DotExpressions can evaluate fields of java.lang.Class instances in addition ↵Gravatar Cal Peyser2016-04-22
| | | | | | | | | | | to actual instances. This allows global namespaces registered in the RuleClassProvider to have structField SkylarkCallables. TESTED: Using the new functionality for AppleSkylarkCommon.getKeys() -- MOS_MIGRATED_REVID=120455804
* Do not display unhelpful total tasks for GitProgressMonitor.Gravatar David Chen2016-04-22
| | | | | | | | | The [task / total] display when cloning a Git repository using the git_repository rules isn't very helpful, especially since jgit doesn't update totalTasks in a useful way. -- MOS_MIGRATED_REVID=120450834
* Fix the srcs filegroup in BazelGravatar Damien Martin-Guillerez2016-04-22
| | | | | | | | | This broke tools/cpp/test/... due to missing files. Unfortunately those tests uses docker and until we can run docker in userland, we cannot run those on Jenkins. -- MOS_MIGRATED_REVID=120445118
* Don't write empty Main-Class manifest entriesGravatar Liam Miller-Cushon2016-04-22
| | | | | | | | When java_binary.create_executable=0, omit the Main-Class entry in the deploy jar's manifest instead of writing an empty main class name. -- MOS_MIGRATED_REVID=120443936
* Remove FilesToRunProvider.label.Gravatar Ulf Adams2016-04-22
| | | | | | | The TransitiveInfoProvider already contains a label, use that instead. -- MOS_MIGRATED_REVID=120443298
* Make source manifest caching catch external runfile changesGravatar Kristina Chodorow2016-04-21
| | | | | -- MOS_MIGRATED_REVID=120442698
* Make the integration tests pass with gRPC client/server comms.Gravatar Lukacs Berki2016-04-21
| | | | | | | | | | | In particular: - Make a SIGINT to the server interrupt every command - Parse negative numbers on the command line correctly (std::stoi throws an exception, and I'd rather not start using C++ exceptions) - Use "bytes" for command line arguments instead of "string" in the client/server proto . This is more principled, although we pretend all arguments are strings all over the place and it works for "blaze run" mostly by accident. -- MOS_MIGRATED_REVID=120434432
* Clean up the runfiles / files-to-run related code a bit.Gravatar Ulf Adams2016-04-21
| | | | | -- MOS_MIGRATED_REVID=120433463
* Fix LIPO with C++ header modules.Gravatar Manuel Klimek2016-04-21
| | | | | | | When collecting LIPO context, do not create module actions. -- MOS_MIGRATED_REVID=120432142
* Further shard out experimental_ui_testGravatar Klaus Aehlig2016-04-21
| | | | | | | | In this way, we avoid individual shards occassionally exceeding the time limit for medium tests. -- MOS_MIGRATED_REVID=120428952
* Release 0.2.2 (2016-04-14)Gravatar Bazel Release System2016-04-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baseline: 759bbfe + 1250fda: Rollback of commit 351475627b9e94e5afdf472cbf465f49c433a25e. + ba8700e: Correctly set up build variables for the correct pic mode for fake_binary rules. + 386f242: Automated [] rollback of commit 525fa71b0d6f096e9bfb180f688a4418c4974eb4. New features: - --extra_entitlements allows passing additional entitlements for iOS signing - The output of -printconfiguration of proguard is available through an implicit "[target_name]_proguard.confg" output of android_binary (and java_binary). - Objective-C compiler information is now available to Skylark. Important changes: - ProGuard relies on bazel to check to see if the inputs have changed. - Build the jsonnet tool for the host when cross-compiling. - Add ProductType for watch OS 1 extension and application. - Restrict file types used for "entitlements" attribute to [".entitlements", ".plist"] - Restrict file types allowed for "strings" attribute to ".strings". - local_repository can take a relative path. - Support apple_watch1_extension and apple_watch_extension_binary rules for creating watch OS 1 extensions. - implement list.insert for skylark rule - Enable overriding attributes for Rust binaries. - ios_device attribute "xcode", for declaring a specific xcode to use when selecting iOS simulators.
* Assorted changes wrt. gRPC client/server comms:Gravatar Lukacs Berki2016-04-21
| | | | | | | | | - Actually make it work again (commit 00cfb7df61b1f3d9fac8ee29d92b315cbfe6d28f broke it, maybe I shouldn't send out changes in a hurry next time) - Rename --grpc_port to --command_port (it's a bit better name) - Do not send a kill signal to the server that can't be connected if we only connect to it to verify its presence -- MOS_MIGRATED_REVID=120418784