aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Check that deeply nested values in sets are immutableGravatar Jon Brandvein2016-08-04
| | | | | -- MOS_MIGRATED_REVID=129331086
* Use std::string instead of const char* in InputJar::Open and MappedFile::Open.Gravatar Sasha Smundak2016-08-04
| | | | | | | Move not performance-critical code to the input_jar.cc. -- MOS_MIGRATED_REVID=129329869
* Enable named arguments for SkylarkCallable annotationGravatar Damien Martin-Guillerez2016-08-04
| | | | | | | | | | This just add the support on the Skylark side, the documentation generator still needs to be updated. -- Change-Id: Ic26547cdb8d2c5c01839a4014c10f1b9b209b92b Reviewed-on: https://bazel-review.googlesource.com/#/c/4247/ MOS_MIGRATED_REVID=129328278
* Create Python executable zip fileGravatar Yun Peng2016-08-04
| | | | | | | | | | using --build_python_zip to specify it, by default it's enabled on Windows and disabled on other platforms. -- Change-Id: Ib992edaf70c08568816b973159a429ff7165eed8 Reviewed-on: https://bazel-review.googlesource.com/#/c/4244 MOS_MIGRATED_REVID=129326115
* zipper now can specify actual path a file is added toGravatar Yun Peng2016-08-04
| | | | | | | | | | | Examples for how to use <zip_path>=<file> syntax: zipper c x.zip a/b/__init__.py= # Add an empty file at a/b/__init__.py zipper c x.zip a/b/main.py=foo/bar/bin.py # Add file foo/bar/bin.py at a/b/main.py -- Change-Id: I3c09dfb31d082f3ca8036e87affc8d99f7e75fe0 Reviewed-on: https://bazel-review.googlesource.com/#/c/4243 MOS_MIGRATED_REVID=129325719
* Fix #1602: Bazel server couldn't start on system lacking IPv6 support.Gravatar Philipp Wollermann2016-08-04
| | | | | -- MOS_MIGRATED_REVID=129320850
* Make compile.sh print the console output for any failing commands during ↵Gravatar Lukacs Berki2016-08-04
| | | | | | | | | bootstrap. Previously, we deleted the temp dir and after that, we tried to print errfile in it, and were surprised that it didn't exist. -- MOS_MIGRATED_REVID=129320375
* Short-circuit runfiles tree creation if runfiles are disabled (for example, ↵Gravatar Lukacs Berki2016-08-04
| | | | | | | on Windows by default) -- MOS_MIGRATED_REVID=129319018
* Add a necessary dependency to options_test.Gravatar Lukacs Berki2016-08-04
| | | | | -- MOS_MIGRATED_REVID=129316675
* Fix an embarrassing bug in the stub build-runfiles script used during ↵Gravatar Lukacs Berki2016-08-04
| | | | | | | | | bootstrapping. It apparently happened not to make a difference, but still. -- MOS_MIGRATED_REVID=129314926
* Remove static checks from the parser.Gravatar Laurent Le Brun2016-08-04
| | | | | -- MOS_MIGRATED_REVID=129313959
* Update windows.md againGravatar Yun Peng2016-08-04
| | | | | -- MOS_MIGRATED_REVID=129305218
* Late-bound split attribute configs weren't being properly propagated to deps ↵Gravatar Greg Estren2016-08-04
| | | | | | | | | | | | | | | | with dynamic configs. The old code incorrectly applied a no-op instead of hard-setting a specific config. Testing: This is a prereq piece for the main change adding dynamic split transitions. Once we have that change, standard Bazel tests over implemented late-bound split attributes (e.g. AppleBinaryRule: ":cc_toolchain") will provide proper coverage. There's no easy way to test this directly since the affected code won't really work until the dynamic split change is in. -- MOS_MIGRATED_REVID=129278253
* Handle archives with preamble.Gravatar Sasha Smundak2016-08-04
| | | | | -- MOS_MIGRATED_REVID=129228122
* Global cleanup change.Gravatar Googler2016-08-03
| | | | | -- MOS_MIGRATED_REVID=129226221
* Refactor CppLinkAction to construct its command line using the crosstool ↵Gravatar Cal Peyser2016-08-03
| | | | | | | instead of a hardcoded switch. Add action configs to CppConfiguration for each link type. -- MOS_MIGRATED_REVID=129221108
* Do not compile turbine for Java 7 build.Gravatar Damien Martin-Guillerez2016-08-03
| | | | | | | -- Change-Id: I3ed7407826b433df6118310872634ad4706939d0 Reviewed-on: https://bazel-review.googlesource.com/#/c/4246/ MOS_MIGRATED_REVID=129217952
* Fix links to Skylark design stuff.Gravatar Dmitry Lomov2016-08-03
| | | | | -- MOS_MIGRATED_REVID=129217657
* Start removing the parsePython booleanGravatar Laurent Le Brun2016-08-03
| | | | | | | It's still used in one place and should be removed completely in October. -- MOS_MIGRATED_REVID=129207133
* Prefer IPv6 when binding the gRPC server to localhost, because the OS X ↵Gravatar Philipp Wollermann2016-08-03
| | | | | | | sandbox will not allow us to bind to the IPv4 one. Automatically falls back to IPv4 if binding to [::1] fails. -- MOS_MIGRATED_REVID=129206917
* Add an enum representing the specific build file name (WORKSPACE, BUILD) to ↵Gravatar John Cater2016-08-03
| | | | | | | the PackageLookupValue to reduce the number of references to the filename "BUILD". -- MOS_MIGRATED_REVID=129203257
* Preliminary cleanup for removing Blaze-specific code from the environmentGravatar Laurent Le Brun2016-08-03
| | | | | | | | The goal is to remove parse and eval functions from Environment, as well as isSkylark boolean. -- MOS_MIGRATED_REVID=129202204
* Remove reference to android_tool_runner.Gravatar Googler2016-08-03
| | | | | | | We actually don't need it. -- MOS_MIGRATED_REVID=129149261
* Provides a clearer message when target analysis fails because its dynamicGravatar Greg Estren2016-08-03
| | | | | | | | | | | | | | | config is missing required fragments. Before this change, Bazel crashes with the mysterious error: "Fragment foo can't load missing options BarOptions" with no details on which target or dep needed Foo. So figuring out the source of the error is painful. With this change, we instead get: //foo:foo: dependency //bar:bar from attribute "deps" is missing required config fragments: JavaConfiguration -- MOS_MIGRATED_REVID=129143764
* Make remote worker message ipv4/v6 agnostic.Gravatar Shreya Bhattarai2016-08-03
| | | | | -- MOS_MIGRATED_REVID=129141770
* Introduce apple_watch2_extension rule for bundling watchOS2 extensions.Gravatar Chris Parsons2016-08-03
| | | | | | | | | | | This can be used in conjunction with apple_binary to add watchOS2 extensions to an ios application bundle. This is the majority of the native work for this bundling logic. Before announcing general availability of this feature, we will want to: 1. Iterate with teams who have existing watchOS2 apps to catch any corner-case bugs 2. Introduce a skylark macro to wrap apple_watch2_extension and apple_binary into a single rule; this will both serve as a convenience and ensure users set the appropriate linkopts and platformtype on their apple_binary target. -- MOS_MIGRATED_REVID=129122855
* Delete NodeEntryField since it's now superfluous in the presence of the new ↵Gravatar Nathan Harmata2016-08-03
| | | | | | | QueryableGraph.Reason which conveys more information. Add a few more Reason enum values to make this refactor benign. -- MOS_MIGRATED_REVID=129118462
* Adds support for round and 340dpi to resource qualifiers, and allows ↵Gravatar Googler2016-08-03
| | | | | | | | | | | stamping 340dpi into the density filtered manifest. Also adds 340dpi to the list of supported Android Wear densities. 340dpi is the density declared by Nemo and Swordfish, and the Play Store will not offer APKs to those devices unless they include <compatible-screens> entries with this density. -- MOS_MIGRATED_REVID=129117839
* Dynamic configs: also include fragments needed to resolve the rule's ↵Gravatar Greg Estren2016-08-03
| | | | | | | | | | | | | | late-bound attributes To be clear: late-bound attributes introduce two new classes of fragments. First is those needed by Attribute.LateBoundDefault to figure out what the attribute's value is. Second is whatever's needed by the actual dep (for label-typed attributes) and its deps. This change only adds the first. The second is harder since we can't determine it until we're already in the analysis phase. -- MOS_MIGRATED_REVID=129117755
* Add TestUtil::RunCommand.Gravatar Sasha Smundak2016-08-03
| | | | | -- MOS_MIGRATED_REVID=129106911
* Handle some previously unhandled scenarios of cycle reporting for ↵Gravatar Googler2016-08-03
| | | | | | | | | TEST_COMPLETION and TARGET_COMPLETION nodes. Fixes #1323. -- MOS_MIGRATED_REVID=129106695
* Add source path context to @+id parse errors.Gravatar Googler2016-08-02
| | | | | | | | Similar to the value xml errors. Otherwise it's not clear what file to look at =) -- MOS_MIGRATED_REVID=129094207
* Public version of Skylark Design Process.Gravatar Dmitry Lomov2016-08-02
| | | | | -- MOS_MIGRATED_REVID=129092214
* ExperimentalStateTracker: make suffix gracefully handle negative lengthGravatar Klaus Aehlig2016-08-02
| | | | | | | | | | | | | | When requested to produce a suffix of a string of a string of a given length, gracefully handle the case where the requested length is negative---simply return the empty string in this case. While there, mark this static method as such; also increase visibility to default as it is generally useful and should be tested as an interface of this class. -- Change-Id: I821966f7ba3828809bc6d000358803c131740ec9 Reviewed-on: https://bazel-review.googlesource.com/#/c/4223 MOS_MIGRATED_REVID=129080284
* Move the --define command line option from CppConfiguration to ↵Gravatar Lukacs Berki2016-08-02
| | | | | | | | | | | BuildConfiguration. It makes much more sense there because it does *not* specify C++ #defines but BUILD variables. Also rename the getter method to make that clearer. This allows us to remove BuildConfiguration.Fragment#getCommandLineDefines(). -- MOS_MIGRATED_REVID=129080014
* ExperimentalEventHandler: narrow scope of synchronized blocksGravatar Klaus Aehlig2016-08-02
| | | | | | | | | | | | | | | | ...to in particular never own a lock while waiting for the update thread to finish. This avoids a deadlock when the update thread tries to enter the synchronized part of doRefresh while the thread trying to stop the update thread holds the lock. Also renable experimental_ui_test now that the race condition leading to the deadlock is fixed. The absence of flakiness has been verified by running the test locally 100 times. Fixes #1560. -- Change-Id: I5d85b347e6cb7a1da8d5a724d6f9cd7461e33e5b Reviewed-on: https://bazel-review.googlesource.com/#/c/4225 MOS_MIGRATED_REVID=129079398
* Add Skylark Remote Repositories design docs to the website.Gravatar Damien Martin-Guillerez2016-08-02
| | | | | | | | | | | | The original docs are at bazel init (removed doc) Skylark Remote Repositories: https://docs.google.com/document/d/1jKbNXOVp2T1zJD_iRnVr8k5D0xZKgO8blMVDlXOksJg/ Generating C++ crosstool with a Skylark Remote Repository: https://docs.google.com/document/d/1Ju74cmBCfYl8SEZT_tXhRmbi49ZLMzXgoQzzqve-dxI -- Change-Id: I5acb28c08c0de552c259e091249e8787c2cf0e58 Reviewed-on: https://bazel-review.googlesource.com/4222 MOS_MIGRATED_REVID=129078523
* Rollback of commit f61d12e9e4f940810efbaf244911a94830ba6c05.Gravatar Lukacs Berki2016-08-02
| | | | | | | *** Reason for rollback *** -- MOS_MIGRATED_REVID=129078102
* ExperimentalEventHandler: avoid recursive starting of the updateThreadGravatar Klaus Aehlig2016-08-02
| | | | | | | | | | | | | | | | Break the situation where an update thread tries to start another update thread early, by telling the doRefresh method when it is called from within an update thread. While no second thread would be started in this case anyway (as the global variables indicate that a thread is already in existence), a lock is still required for this step, which can cause all kinds of problems. Note that we don't have to worry about the update thread being about to be stopped in that moment, as only global events indicating completion stop the update thread. -- Change-Id: Ib025ba2b12bcd339c590593213eeedfd9cb230d3 Reviewed-on: https://bazel-review.googlesource.com/#/c/4224 MOS_MIGRATED_REVID=129077891
* Rollback of commit 49dfc29a40764ae48f2343007f88f3a4938498f1.Gravatar Yun Peng2016-08-02
| | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** This change causes android_integration_test failing on Mac. *** Original change description *** Sets SONAME on shared objects in Android binaries. 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. -- MOS_MIGRATED_REVID=129074607
* Fix owner permissions bug in unzip codeGravatar Justine Tunney2016-08-02
| | | | | | | | This situation arises when a zip file does not contain entries for the directories themselves, but only the files themselves. -- MOS_MIGRATED_REVID=129072925
* Avoid unnecessarily nesting FilesetTraversalParams if the nesting adds no ↵Gravatar Janak Ramakrishnan2016-08-02
| | | | | | | information. -- MOS_MIGRATED_REVID=129012839
* Add hashCode(), equals(), and basic toString() to FilesetTraversalParams ↵Gravatar Janak Ramakrishnan2016-08-02
| | | | | | | classes, and mark traversals fields as nullable. -- MOS_MIGRATED_REVID=129010094
* Fixes bug where --noenforce_constraints wasn't propagating to host ↵Gravatar Greg Estren2016-08-02
| | | | | | | | | | configurations. Even though standard constraint checking skips target -> host deps anyway, it *doesn't* skip host -> host deps. -- MOS_MIGRATED_REVID=128995987
* Use the native java_proto_library instead of the macro defined in genproto.bzl.Gravatar Carmi Grushko2016-08-02
| | | | | -- MOS_MIGRATED_REVID=128992760
* Tolerate missing field value in binary's R.txtGravatar Googler2016-08-02
| | | | | | | | | | | | | | | | | | The binary's R.txt might not be superset of symbols in the various library R.txt files. The R.java writer had tolerated this, as did an older version of the RClassGen (lost in refactoring). Bring back the null check. This can happen if the binary has res overrides that *remove* symbols. E.g., if noop/res/layout/stats.xml overrides dev/.../stats.xml, and the noop version removes elements not needed for production. Test mocks can do something similar. -- MOS_MIGRATED_REVID=128989080
* Don't fill in stack trace for ReturnExceptionGravatar Michajlo Matijkiw2016-08-02
| | | | | | | | This is used to implement return, it's not really an exceptional condition requiring a full trace. -- MOS_MIGRATED_REVID=128988641
* Using a temporary user output root when generating the completion scriptGravatar Damien Martin-Guillerez2016-08-01
| | | | | | | | | | | Without that, we write some data in the cache that should not be cached. This fix the remaining issue about bazel writing out of the cache directory described in Homebrew/homebrew-core#3427. -- Change-Id: I8794693233675124fbc7ee3691297e7a84d999b4 Reviewed-on: https://bazel-review.googlesource.com/#/c/4221/ MOS_MIGRATED_REVID=128980718
* Add google-jdk as Bazel debian package dependencyGravatar Yun Peng2016-08-01
| | | | | | | -- Change-Id: I70c5707db557637894054c0ccec98999d043c7bf Reviewed-on: https://bazel-review.googlesource.com/#/c/4220 MOS_MIGRATED_REVID=128979317
* Add 'local=1' to sandbox tests, as they can't run on remote execution nor ↵Gravatar Yue Gan2016-08-01
| | | | | | | | | inside a sandboxed Bazel on OS X -- Change-Id: I751b77c9a8dd7afc992dba0218f990118f06f98d Reviewed-on: https://bazel-review.googlesource.com/#/c/4201/3 MOS_MIGRATED_REVID=128976206