aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Make a copy of the list when passing the value from Skylark to BUILD.Gravatar Laurent Le Brun2015-10-14
| | | | | | | | | | | | This change affects only lists, because it is the only mutable type. The change is also temporary. We will later make the list immutable (when it comes from a different context) and we will be able to remove the copy. This fixes a critical bug where values could be mutated from a BUILD file and affect other BUILD files. -- MOS_MIGRATED_REVID=105400506
* Reimplement target pattern parsing in Skyframe.Gravatar Ulf Adams2015-10-14
| | | | | | | | This is currently not hooked up, and we're passing (potentially) massive numbers of targets around. -- MOS_MIGRATED_REVID=105395404
* Make package not Java serializableGravatar Michajlo Matijkiw2015-10-14
| | | | | | | No need for this, remove to cut out some cruft/room for accidents. -- MOS_MIGRATED_REVID=105378202
* Mostly lockless updates of remainingTasks counterGravatar Mark Schaller2015-10-14
| | | | | | | | | Uses an AtomicLong to count remaining tasks. Only obtains the zeroRemainingTasks lock when remaining tasks have gone to zero or the codepath needs to wait on that condition. -- MOS_MIGRATED_REVID=105348523
* Release 0.1.1 (2015-10-05)Gravatar Bazel Release System2015-10-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Baseline: 22616ae + 1ef338f: Rollback of "Propagates cc_library linkopts attribute to dependent objc_libraries.": breaks certain objc_binary build targets. + 5fb1073: Reintroduce an inconsistency check (albeit, in a weaker form) removed by a previous change that was trying to optimize away a filesystem call. + 6d00468b2eb976866cfb814d562e0d53a580a46f: Add IdlClass to the embedded default android tools repository and rearrange BuildJar's JarHelper so that it too can be embedded. + a5199039934a2e399a7201adc0d74e2f2d2b0ff3: Fixes Android integration tests by wiring up idlclass rules in integration environment. Incompatible changes: - Bazel requires JDK 8 to run. - Attribute "copts" is removed from j2objc_library. New features: - a cc_binary rule may list '.s' and '.asm' files in the srcs - Support for build with libsass. - labels in "linkopts" may match any label in either "deps" or "srcs" to be considered valid. - Maven servers that require username & password authentication are now supported (see maven_server documentation). Important changes: - Support empty plist files - The <compatible-screens> section of the AndroidManifest.xml will not be overwritten if it already contains a <screen> tag for each of the densities specified on the android_binary rule. - Add Jsonnet rules to Bazel - Remove deprecated xcode_options flag. - Workspace names are now restricted to being in their base directory (that is, the names cannot contain up-level references or /./). - j2objc_library on Bazel now transpiles transitive proto_library dependencies. (Note that java_* rules in Bazel do not yet support protos; currently they ignore proto dependencies.) - new_http_archive can specify a root directory. - Adds support for dylibs on devices for Xcode 7. - [d] d_docs rules now depend on a d_binary, a d_library or d_source_library. - [docker] docker_build now set the permission to 0555 to files added to the layer, use `mode = "0644"` to use the legacy behavior. - android_binary now has a main_dex_proguard_specs attribute to specify which classes should be in the main dex. - [rust] Add rust_docs rule for generating rustdoc. Change-Id: Id42f6cbeed9531c7023b754e6213782487650c44
* Minor tidying of AbstractQueueVisitorGravatar Mark Schaller2015-10-13
| | | | | | | | | | Removes unnecessary final keyword on private methods, inlines the un-overridden protected method getWorkQueue, and restructures internal constructors to be flatter (i.e. every constructor implementation calls at most one other constructor). -- MOS_MIGRATED_REVID=105344413
* Add HTML profiler execution phase statisticsGravatar Klaas Boesche2015-10-13
| | | | | | | | Re-adds the missing execution phase statistics which got lost in the recent ProfileCommand refactoring. -- MOS_MIGRATED_REVID=105340677
* Allow other ExecutorService implementations in AbstractQueueVisitorGravatar Mark Schaller2015-10-13
| | | | | | | Previously, only ThreadPoolExecutor implementations were allowed. -- MOS_MIGRATED_REVID=105340237
* Only open and read the BUILD file when we don't have a cached preprocessing ↵Gravatar Nathan Harmata2015-10-13
| | | | | | | | | result. This is a step in the right direction towards the goal of opening and reading each BUILD file exactly once. -- MOS_MIGRATED_REVID=105338761
* Rollback of unknown previous commit.Gravatar Googler2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke bazel build. *** Original change description *** Update iossim for Xcode 7 support. As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe *** Also includes the following changes: Size the Lexer tokenization to minimize internal resizing. This value is chosen empirically. -- Fixes toolchain selection in the generated Android NDK crosstools by making each target_cpu and compiler field unique. Note that there are some problems with the clang compilers (e.g. can't find ld), which I'll fix in a subsequent change. -- Update iossim for Xcode 7 support. As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe -- MOS_MIGRATED_REVID=105337154
* Fix an edge case in which we have imported libraries with duplicated base ↵Gravatar Rumou Duan2015-10-13
| | | | | | | | | names. A shell script build phase is added to copy the imported libraries to BUILT_PRODUCT_DIR with unique names before linking. -- MOS_MIGRATED_REVID=105324431
* Improves the error message for invalid cpu (--cpu or --fat_apk_cpu).Gravatar Alex Humesky2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | Before: ERROR: No toolchain found for cpu 'x84'. After: ERROR: No toolchain found for cpu 'x84'. Valid cpus are: [ armeabi, armeabi-v7a, armeabi-v7a-hard, armeabi-thumb, armeabi-v7a-thumb, armeabi-v7a-hard-thumb, arm64-v8a, mips, mips64, x86, x86_64, ]. -- MOS_MIGRATED_REVID=105324190
* Makes the error message for invalid or duplicate crosstool toolchains more ↵Gravatar Alex Humesky2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | legible by putting each flag combination on its own line. E.g. from this: ERROR: No toolchain found for --cpu='foo' --compiler='bar' --glibc='baz'. Valid toolchains are: [ --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='local' --compiler='compiler' --glibc='local', --cpu='darwin' --compiler='compiler' --glibc='macosx', --cpu='freebsd' --compiler='compiler' --glibc='local', --cpu='k8' --compiler='windows_mingw' --glibc='local', --cpu='k8' --compiler='windows_msys64_mingw64' --glibc='local', --cpu='k8' --compiler='windows_clang' --glibc='local',]. to this: ERROR: No toolchain found for --cpu='foo' --compiler='bar' --glibc='baz'. Valid toolchains are: [ --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='armeabi-v7a' --compiler='compiler' --glibc='armeabi-v7a', --cpu='local' --compiler='compiler' --glibc='local', --cpu='darwin' --compiler='compiler' --glibc='macosx', --cpu='freebsd' --compiler='compiler' --glibc='local', --cpu='k8' --compiler='windows_mingw' --glibc='local', --cpu='k8' --compiler='windows_msys64_mingw64' --glibc='local', --cpu='k8' --compiler='windows_clang' --glibc='local', ]. (notice there is a duplicate toolchain) -- MOS_MIGRATED_REVID=105313547
* Add the remainder of support_v7 to android_sdk_repository that can beGravatar Todd Jeffreys2015-10-13
| | | | | | | referenced via "//external:android/xyz_v7" -- MOS_MIGRATED_REVID=105313228
* Delete unused method in AbstractQueueVisitor.Gravatar Janak Ramakrishnan2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105312426
* Make ParallelEvaluatorTest#unrecoverableError failure messages more informative.Gravatar Janak Ramakrishnan2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105312124
* [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to allow ↵Gravatar David Chen2015-10-13
| | | | | | | | | passing external variables to Jsonnet via --var and --code_var. RELNOTES: [jsonnet] Add vars and code_vars attributes to jsonnet_to_json to allow passing external variables to Jsonnet via --var and --code_var. -- MOS_MIGRATED_REVID=105305323
* [jsonnet] Update to Jsonnet 0.8.1Gravatar David Chen2015-10-13
| | | | | | | RELNOTES: [jsonnet] Update to Jsonnet 0.8.1. -- MOS_MIGRATED_REVID=105303487
* Tweak the BUILD file for Damien's .deb rules so that they depend on gflags ↵Gravatar Lukacs Berki2015-10-13
| | | | | | | properly. -- MOS_MIGRATED_REVID=105301992
* Use default_visibility instead of visibility in package()Gravatar Brian Silverman2015-10-13
| | | | | | | -- Change-Id: I81b4e688b8cf57b2e4a3078f3460c323acd65097 Reviewed-on: https://bazel-review.googlesource.com/#/c/2130 MOS_MIGRATED_REVID=105301546
* Split off 2 BUILD files.Gravatar Han-Wen Nienhuys2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105301167
* Make the sandbox handle an arbitrary number of argumentsGravatar Brian Silverman2015-10-13
| | | | | | | | | | I was hitting argument length restrictions when trying to run rules which take 2 GCC installs and a Clang install as inputs. -- Change-Id: Iee27bb6fb50fe94bff4b2500bbcfa9381b05d63d Reviewed-on: https://bazel-review.googlesource.com/#/c/2090 MOS_MIGRATED_REVID=105300670
* Make the /... recursive package target wildcard traverse symlinks.Gravatar Lukacs Berki2015-10-13
| | | | | | | | | This works because we resolve the FileValue for every directory found during the traversal, therefore, symlink cycles and symlink structures giving rise to infinite directory trees are handled correctly (that is to say, the same way as they are handled during globbing) Fixes #274. -- MOS_MIGRATED_REVID=105290852
* Fix PackageFunction#loadPackage preprocessing result cache memory leak on ↵Gravatar Nathan Harmata2015-10-13
| | | | | | | | | error from SkylarkImportResult dep. This is part of a series of changes with the net result being that we open, read, and parse each BUILD file exactly once. -- MOS_MIGRATED_REVID=105253634
* Enable Blaze profiling for the VFS_READ on InputStream#read(), since some ↵Gravatar Nathan Harmata2015-10-13
| | | | | | | | | helper classes do call that method to see if the stream has more data. This is part of a series of changes with the net result being that we open, read, and parse each BUILD file exactly once. -- MOS_MIGRATED_REVID=105253425
* Automated [] rollback of [] + merge with []Gravatar Nathan Harmata2015-10-13
| | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Original CL uncovered a depot issue which was fixed in []. I verified it was the only such issue (see []). *** Original change description *** Rollback of commit f87a414a6bf50613a2c419e53a96f76154f44ae3. *** Reason for rollback *** Rolling back until [] is submitted and we have verified that there are no other breakages *** Original change description *** Handle the case of infinite symlink expansion where a path in a symlink chain is a symlink to an ancestor of a path in the chain. -- MOS_MIGRATED_REVID=105251788
* Test concurrent get and createIfAbsent. Also remove unnecessary locking in ↵Gravatar Janak Ramakrishnan2015-10-13
| | | | | | | #testAddingInflightNodes, which also gives some concurrency coverage. -- MOS_MIGRATED_REVID=105238900
* Determine ios sdk version (and pass it to bazel) as part of test setupGravatar Chris Parsons2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105235919
* Make SkyFunctions.SKYLARK_IMPORT_CYLCE publicGravatar Michajlo Matijkiw2015-10-13
| | | | | | | Makes it consistent with the rest of the file. -- MOS_MIGRATED_REVID=105233324
* Rename IOS_SDK_VERSION_OVERRIDE to APPLE_SDK_VERSION_OVERRIDE, as it need ↵Gravatar Chris Parsons2015-10-13
| | | | | | | not be locked to iOS SDK. -- MOS_MIGRATED_REVID=105231425
* Remove unused '--generatedSourcesPath ' option handling from ↵Gravatar Andrew Pellegrini2015-10-13
| | | | | | | AndroidResourceProcessingAction. -- MOS_MIGRATED_REVID=105218303
* Refactor cycle related skyvalues to use shared empty valueGravatar Michajlo Matijkiw2015-10-13
| | | | | | | | | | | Previously the cycle values (were supposed to) share a common abstract base class, however usage was inconsistent. Instead refactor to eliminate the specialized value classes, remove the abstract class, and share a common empty placeholder value, which should be useful for future/other current empty values. -- MOS_MIGRATED_REVID=105217399
* Added an example that uses resources to scala/test.Gravatar John Sullivan2015-10-13
| | | | | | | -- Change-Id: Icd13926ff293c0db36d7731e0d961eb42bbaca6d Reviewed-on: https://bazel-review.googlesource.com/#/c/2122/1 MOS_MIGRATED_REVID=105217047
* Added support for resources in scala builds.Gravatar John Sullivan2015-10-13
| | | | | | | -- Change-Id: Idece9ef559e2553960da2a0459cb6b69544e3bd0 Reviewed-on: https://bazel-review.googlesource.com/#/c/2061/1 MOS_MIGRATED_REVID=105214947
* Description redacted.Gravatar Googler2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105214382
* Add timing info for tests and correct caching vs. run ratioGravatar Kristina Chodorow2015-10-13
| | | | | | | | | | | | | | | Now prints: //foo:bar (cached) PASSED in 0.1s instead of: //foo:bar (1/0 cached) PASSED Fixes #218. -- MOS_MIGRATED_REVID=105210302
* Make the bootstrapping process work again after moving tools to the ↵Gravatar Lukacs Berki2015-10-12
| | | | | | | | | | | @bazel_tools repository. The fix is to always compile tools when the Bazel binary is compiled and add the bootstrap arguments to bootstrap_test. This stil litters the git client with output files in random places, which is a bit difficult to fix, since //src:bazel expects these files to be there so that it can embed them into the output binary. I didn't notice this issue because tools/jdk/*_deploy.jar is in the .gitignore file, thus, when "git status" reported nothing, I asumed I ran the build in a clean client. -- MOS_MIGRATED_REVID=105206124
* Use param files for Linux C(++) toolchains.Gravatar Han-Wen Nienhuys2015-10-12
| | | | | | | Fixes #490. -- MOS_MIGRATED_REVID=105205371
* LTO: Don't choke on cc_library without srcs.Gravatar Han-Wen Nienhuys2015-10-12
| | | | | -- MOS_MIGRATED_REVID=105204997
* Added android_compiler flag.Gravatar Austin Schuh2015-10-12
| | | | | | | | | | | | Added a flag which allows the user to specify the android compiler. This commit also disconnects the android compiler from the main --compiler flag. Changing the --compiler flag won't change the compiler used by the android rules. -- Change-Id: I788d3a353a1cc304e1c015b9dd283258e6e172d4 Reviewed-on: https://bazel-review.googlesource.com/2112 MOS_MIGRATED_REVID=105203751
* Make Bazel use tools that are embedded in its binary.Gravatar Lukacs Berki2015-10-12
| | | | | | | This requires changing all "//tools/language:target" implicit dependencies to "@tools//tools/language:target". -- MOS_MIGRATED_REVID=105193805
* Pass a directory for find to look in for OS XGravatar Kristina Chodorow2015-10-12
| | | | | | | | Fixes the illegal option error here: http://ci.bazel.io/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=darwin-x86_64/162/console -- MOS_MIGRATED_REVID=105189685
* Show documentation for --objc_generate_debug_symbolsGravatar Peter Schmitt2015-10-12
| | | | | -- MOS_MIGRATED_REVID=105175791
* Don't iterate over children when building events if events won't be stored ↵Gravatar Janak Ramakrishnan2015-10-12
| | | | | | | anyway. Also batch retrievals of children when building events. -- MOS_MIGRATED_REVID=105174435
* Add isSource to Android aspect ArtifactLocation.Gravatar Googler2015-10-12
| | | | | | | | This supersedes bin/gen files on Android SDK. The fields are removed entirely since the proto isn't public yet. -- MOS_MIGRATED_REVID=105130701
* The <use-permission-sdk-23> tag is not merged into final manifestGravatar Googler2015-10-12
| | | | | | | | Now in the android_manifest_merge rule, the newly introduced <use-permission-sdk-23> tag is not merged. -- MOS_MIGRATED_REVID=105104945
* Clear interrupt bit before processing any error thrown by SkyFunction during ↵Gravatar Janak Ramakrishnan2015-10-12
| | | | | | | error bubbling. -- MOS_MIGRATED_REVID=105102597
* Delay additions as well as removals of reverse deps. Now that removals are ↵Gravatar Janak Ramakrishnan2015-10-12
| | | | | | | | | | | not all done during invalidation, repeated adding/removing means that we are consolidating more often, negating the benefit of delayed removals. To work around this, delay adds as well until we consolidate and verify the integrity of our data. Since there is no well-defined point that a consolidation should trigger for a done node, we delay until our pending list is as large as the done list. We can tweak this if necessary for a memory/performance tradeoff. The alternative to this that I could think of is giving up our strong integrity checks, which I'm not a fan of. -- MOS_MIGRATED_REVID=105095886
* Track skylark import cycles in terms of PackageIdentifiersGravatar Michajlo Matijkiw2015-10-12
| | | | | | | | | | We don't have any strong guarantees around the stability of SkyKey#toString(), which we rely on to canonicalize cycles. We can reasonably expect PackageIdentifier#toString() to be stable enough though. We also hide away the cycle detection details from external code in this change. -- MOS_MIGRATED_REVID=105093095
* Rollback of commit 0f1b041c23e7cc3a2af4bb47a6cd1f3a331b5a4f.Gravatar Shreya Bhattarai2015-10-12
| | | | | | | | | | | | | *** Reason for rollback *** Rolling back until [] is submitted and we have verified that there are no other breakages *** Original change description *** Handle the case of infinite symlink expansion where a path in a symlink chain is a symlink to an ancestor of a path in the chain. -- MOS_MIGRATED_REVID=105080445