aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib
Commit message (Collapse)AuthorAge
* Added more details about the use of configuration fragments in Skylark to ↵Gravatar Florian Weikert2015-08-24
| | | | | | | the documentation. -- MOS_MIGRATED_REVID=101357875
* FileTypeSet: now supports creating unions of a FileTypeSet and some FileTypes.Gravatar Laszlo Csomor2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101348687
* Removed ctx.configuration.fragment() from Skylark. Please use ↵Gravatar Florian Weikert2015-08-24
| | | | | | | ctx.fragments.{cpp,java,jvm} instead. -- MOS_MIGRATED_REVID=101348294
* ctx.new_file(Artifact, String) now replaces the basename of the base ↵Gravatar Florian Weikert2015-08-24
| | | | | | | artifact with the given name instead of appending a suffix -- MOS_MIGRATED_REVID=101348273
* Add '.ldscript' as a possible linker script file extension.Gravatar Googler2015-08-24
| | | | | | | | | | This is an easy way to deal with other code that names scripts as such, rather than requiring that scripts be renamed to end in ".lds" RELNOTES[NEW]: deps of a cc_binary may contain linker script files ending in ".ldscript" -- MOS_MIGRATED_REVID=101346375
* Use Buildifier convention for action_listener rule examples.Gravatar David Chen2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101346366
* Remove the some calls to AnalysisEnvironment.getDerivedArtifact() and add a ↵Gravatar Lukacs Berki2015-08-24
| | | | | | | | | | | big fat warning that that method shouldn't be used anymore. Ideally, I'd mark it as deprecated, but it's legitimately used by RuleContext. I could just forbid access to AnalysisEnvironment to rule implementations, but, sadly, almost every method on it is called at a few oddball places in implementations of various rules, so we can't do it just yet. -- MOS_MIGRATED_REVID=101345484
* Remove an AnalysisEnvironment.getDerivedArtifact() call from nativedeps.Gravatar Lukacs Berki2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101344826
* Change the skylark Java rules to use the configuration path separator.Gravatar Ulf Adams2015-08-24
| | | | | | | The build-in rules also use it. -- MOS_MIGRATED_REVID=101343109
* Add the implicit output of unstripped binary for Launcher-enabled java_binary.Gravatar Googler2015-08-24
| | | | | | | Use stripped launcher when Fission is enabled. -- MOS_MIGRATED_REVID=101244628
* Make permanent changes already in tools/blaze.blazercGravatar Googler2015-08-24
| | | | | | | RELNOTES: For Objective-C make -DDEBUG part of the -c fastbuild options -- MOS_MIGRATED_REVID=101243825
* Improve efficiency of reverse queries for Skyframe by memoizing ↵Gravatar Miguel Alcon Pinto2015-08-24
| | | | | | | getAllowedDeps calls on the same batch call -- MOS_MIGRATED_REVID=101238126
* Preserve specified order of keys when analyzing configured targets.Gravatar Janak Ramakrishnan2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101235139
* Implement hashCode, equals for TransitiveTraversalValue and related SkyValuesGravatar Mark Schaller2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101233095
* Add shortcut methods for adding providers. These do not require explicitly ↵Gravatar Carmi Grushko2015-08-24
| | | | | | | | | specifying the class of the provider object. -- MOS_MIGRATED_REVID=101227127
* Description redacted.Gravatar Michajlo Matijkiw2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101221537
* Remove an AnalysisEnvironment.getDerivedArtifact() call from nativedeps.Gravatar Lukacs Berki2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101218538
* Abstract away artifact creation in CppLinkAction so that we can create most ↵Gravatar Lukacs Berki2015-08-24
| | | | | | | | | of the artifacts in a way that checks that they are under the package directory. The exception is nativedeps, whose link actions are shared, and thus they cannot be at a package-specific location. -- MOS_MIGRATED_REVID=101216949
* Improve the JDK and JRE filegroups to include all the necessary parts. Then ↵Gravatar Philipp Wollermann2015-08-24
| | | | | | | fix the Skylark rules and tests that so far failed to declare dependencies on the JVM. -- MOS_MIGRATED_REVID=101215495
* Prefer RuleContext.getFragment over BuildConfiguration.getFragment.Gravatar Ulf Adams2015-08-24
| | | | | | | This improves the coverage of the legality check in RuleContext.getFragment. -- MOS_MIGRATED_REVID=101208822
* The sorted function now accepts sets and dictionaries inputs.Gravatar Laurent Le Brun2015-08-24
| | | | | -- MOS_MIGRATED_REVID=101208507
* Fix import for CompactHashSet.Gravatar David Chen2015-08-21
| | | | | -- MOS_MIGRATED_REVID=101204982
* Add an empty RunfilesProvider to cc_toolchain_suite to fulfill the contract ↵Gravatar Alex Humesky2015-08-21
| | | | | | | in RuleConfiguredTarget. -- MOS_MIGRATED_REVID=101166333
* Don't acquire the lock when we don't need to mutate the 'children' map.Gravatar Nathan Harmata2015-08-21
| | | | | | | []FIXED=23350182 -- MOS_MIGRATED_REVID=101158691
* Add rbuildfiles function to queries, only for use when using ↵Gravatar Janak Ramakrishnan2015-08-21
| | | | | | | | | SkyQueryEnvironment. rbuildfiles returns the packages (in the form of BUILD files) that depend on the given source files as BUILD files or subincludes. -- MOS_MIGRATED_REVID=101157700
* Filter out targets not in the universe (as defined by the lack of transitive ↵Gravatar Janak Ramakrishnan2015-08-21
| | | | | | | traversal values) from queries. -- MOS_MIGRATED_REVID=101151407
* Fix output of query --output=buildGravatar Laurent Le Brun2015-08-21
| | | | | | | Implicit attributes start with '_' to make the output parsable. -- MOS_MIGRATED_REVID=101151243
* Convert evaluated tracking to take a lazy SkyValueGravatar Mark Schaller2015-08-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The EvaluationProgressReceiver#evaluated method took a SkyValue, but that parameter was only used by some of its implementations, and only under some conditions. Outside of tests, the main users are SkyframeBuildView's ConfiguredTargetValueInvalidationReceiver and SkyframeBuilder's ExecutionProgressReceiver. The former builds up a set of built ConfiguredTarget keys when the SkyValue is non-null and the EvaluationState is BUILT, and so its nullity check can live behind those two conditions. The latter cares about builting up a set of ConfiguredTargets, and raising events on the eventBus when a TARGET_COMPLETION or ASPECT_COMPLETION value is evaluated and is non-null. The extraction of these values can live behind the conditions that check the type of the SkyKey. By making the SkyValue parameter lazy, this change enforces that it's only accessed under these conditions. This CL introduces a semantic change that should be small in effect. The SkyframeBuildView keeps track of a set, dirtiedConfiguredTargetKeys, and ConfiguredTarget keys evaluated as CLEAN were removed from it if they had a non-null value. With this change, ConfiguredTarget keys evaluated as CLEAN get removed regardless of whether their values are null or non-null. The set is used to determine whether artifact conflict search has to be rerun, and the extra removals that result from this CL could cause fewer artifact conflict searches to run, but the only affected searches would be those that were caused by dirtied configured target values in error all of which were subsequently marked as clean, which is probably rare. -- MOS_MIGRATED_REVID=101144655
* Rollback of commit 0218320f1316b4d25e35abaaa80206237468824d.Gravatar Han-Wen Nienhuys2015-08-20
| | | | | | | | | | *** Reason for rollback *** Breaks skylark macros that call skylark rules that declare an 'args' attribute. -- MOS_MIGRATED_REVID=101118137
* Remove debugging statementGravatar Kristina Chodorow2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101118095
* Replace AnalysisEnvironment.getDerivedArtifact() calls with ↵Gravatar Lukacs Berki2015-08-20
| | | | | | | RuleContext.getShareableArtifact() calls where the former method is used to create the outputs of shared actions. -- MOS_MIGRATED_REVID=101116694
* A minor refactoring of JavaSemantics.Gravatar Lukacs Berki2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101113563
* Remove a few AnalysisEnvironment.getDerivedArtifact() call sites.Gravatar Lukacs Berki2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101111724
* Replace ref equality with .equals for SkyFunctionNames (2)Gravatar Mark Schaller2015-08-20
| | | | | | | | | | Ref equality for same-name SkyFunctionNames is not guaranteed. These were some instances I missed in my previous sweep. I searched for references to the SkyFunctions and SkyFunctionNames classes throughout the project to catch these remaining instances. -- MOS_MIGRATED_REVID=101061352
* Fix {new_,}git_repository after shutdown.Gravatar Brian2015-08-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, after a server shutdown they would fail because the repository already exists. This change fixes that and avoids re-downloading if the local repository is already the correct version and unmodified. An example of the error before: $ bazel fetch ... ....... INFO: Loading package: tools/cpp java.lang.RuntimeException: Unrecoverable error while evaluating node 'GIT_CLONE:file:///tmp/gtest-1.7.0 -> /home/brian/.cache/bazel/_bazel_brian/46af2c6e62e13aca9af015360f8fb1da/external/gtest_repo (091e69312f2c133860e71e6b01118c1f5a8c943d) submodules: false' (requested by nodes 'NEW_GIT_REPOSITORY:@gtest_repo') at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:745) at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$1.run(AbstractQueueVisitor.java:346) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: org.eclipse.jgit.api.errors.JGitInternalException: Destination path "gtest_repo" already exists and is not an empty directory at org.eclipse.jgit.api.CloneCommand.init(CloneCommand.java:152) at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:132) at com.google.devtools.build.lib.bazel.repository.GitCloneFunction.compute(GitCloneFunction.java:68) at com.google.devtools.build.skyframe.ParallelEvaluator$Evaluate.run(ParallelEvaluator.java:709) ... 4 more -- Change-Id: Ifca46302537248106740941b70bc5bd11fa1eeb1 Reviewed-on: https://bazel-review.googlesource.com/#/c/1650 MOS_MIGRATED_REVID=101045419
* Teach java_import about runtime_deps.Gravatar Googler2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101033383
* A prototype implementation of top-level aspects.Gravatar Dmitry Lomov2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101033236
* RELNOTES: Allow private headers in the srcs attribute. Add a warning if a ↵Gravatar Googler2015-08-20
| | | | | | | | | file is in both srcs and hdrs. This uses a very restrictive definition of private headers. They may only imported by sources in the same target and other private headers. They are not transitively available to dependers, even indirectly, though this may change in the future. -- MOS_MIGRATED_REVID=101028706
* Make SkyQueryEnvironment more efficient retrieving the labels.Gravatar Miguel Alcon Pinto2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101021838
* Skylark rules can no longer overwrite built-in attributes.Gravatar Florian Weikert2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101015647
* Improve documentation in MethodLibraryGravatar Laurent Le Brun2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101014733
* Rollback of commit 50adddf01b8d7f46fba6bee12ebbb41c31c87165.Gravatar Ulf Adams2015-08-20
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Makes some tests fail, oddly enough. *** Original change description *** Fixes to use dylib on MacOS X. The change in LinkCommandLine.java fixes the error "ld: library not found for -ltbb.dylib". The change in osx_gcc_wrapper.sh fixes the error "dyld: Library not loaded: @rpath/libtbb.dylib". See https://groups.google.com/forum/#!topic/bazel-discuss/bs8BnXYRjzY -- MOS_MIGRATED_REVID=101012689
* Fixes to use dylib on MacOS X.Gravatar Topher2015-08-20
| | | | | | | | | | | The change in LinkCommandLine.java fixes the error "ld: library not found for -ltbb.dylib". The change in osx_gcc_wrapper.sh fixes the error "dyld: Library not loaded: @rpath/libtbb.dylib". See https://groups.google.com/forum/#!topic/bazel-discuss/bs8BnXYRjzY -- Change-Id: I7feb02eee7d059d86a6d29af391dc2fc71e1d0cc Reviewed-on: https://bazel-review.googlesource.com/#/c/1831/ MOS_MIGRATED_REVID=101007071
* Clean up some testing-only and single-call codepaths in Digraph code.Gravatar Janak Ramakrishnan2015-08-20
| | | | | -- MOS_MIGRATED_REVID=100985124
* Log information about the initial baseline DiffAwareness.View. This is ↵Gravatar Nathan Harmata2015-08-20
| | | | | | | especially useful reproducing a clean build merely from the INFO log. -- MOS_MIGRATED_REVID=100984749
* Avoid Skyframe restarts in transitive targets due related to conservative ↵Gravatar Eric Fellheimer2015-08-20
| | | | | | | aspect deps. -- MOS_MIGRATED_REVID=100960261
* Remove errant paths from crosstool test files.Gravatar Alex Humesky2015-08-20
| | | | | | | | | | | | | | | | | | | Also includes the following changes: Introduce a helper class for low-boilerplate time measurements and logging. -- Removed attribute "args" from java_test. -- Adds the arm64, mips, mips64, x86, and x86_64 toolchains in the Android NDK This adds the precited targets to the crosstools file generated by the android_ndk_repository rule. The crosstools support NDK revision r10e-rc4. RELNOTES: arm64, mips, mips64, x86, and x86_64 NDK toolchains added to android_ndk_repository in Bazel -- MOS_MIGRATED_REVID=100953441
* --Gravatar Rumou Duan2015-08-20
| | | | MOS_MIGRATED_REVID=100930529
* Fix printing of struct objectsGravatar Laurent Le Brun2015-08-20
| | | | | -- MOS_MIGRATED_REVID=100926797
* Deduplicate XCode target names in the dependencies propagated to XCode projects.Gravatar Michael Thvedt2015-08-20
| | | | | -- MOS_MIGRATED_REVID=100924958