aboutsummaryrefslogtreecommitdiffhomepage
Commit message (Collapse)AuthorAge
* Allow Skylark to access information about runfiles.Gravatar Brian Silverman2015-06-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is important to build packages of bazel-built code, especially python. Simple example usage: def _runfiles_test_impl(ctx): runfiles_provider = provider(ctx.attr.src, 'analysis.RunfilesProvider') runfiles = runfiles_provider.default_runfiles.artifacts commands = [] for f in runfiles: commands += [ 'mkdir -p $(dirname %s/%s)' % (ctx.outputs.outdir.path, f.short_path), 'cp %s %s/%s' % (f.path, ctx.outputs.outdir.path, f.short_path), ] ctx.action( outputs = [ ctx.outputs.outdir ], inputs = list(runfiles), command = ' && '.join(commands) ) '''A simple rule which copies all the runfiles from src into outdir.''' runfiles_buildtest = rule( implementation = _runfiles_test_impl, attrs = { 'src': attr.label(allow_files=False, mandatory=True), 'outdir': attr.output(mandatory=True), }, ) -- Change-Id: I8fbd4c6ea462685142cf199dfe3348bc4436cdcb Reviewed-on: https://bazel-review.googlesource.com/1530 MOS_MIGRATED_REVID=96576360
* Error message when attribute is of the wrong type is misleadingGravatar Laurent Le Brun2015-06-23
| | | | | | | Fixes #241 -- MOS_MIGRATED_REVID=96573740
* Extract, reuse excluded directory assertionGravatar Mark Schaller2015-06-23
| | | | | | | Also adds tests for it. -- MOS_MIGRATED_REVID=96572991
* Fix typo.Gravatar Nathan Harmata2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96572029
* Update Truth for Bazel to 0.27.Gravatar Philipp Wollermann2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96566439
* Let Bazel set a good example of how to split up your code into multiple ↵Gravatar Philipp Wollermann2015-06-23
| | | | | | | java_library's instead of having a single "java_library(name = "everything", srcs = glob("**"))" target. -- MOS_MIGRATED_REVID=96565633
* Rollback of commit 6af85020b520a9dd2bd913562b16716c29c3dbc3.Gravatar Laszlo Csomor2015-06-23
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks ios_test targets. *** Original change description *** Add two binary size optimizations when --compilation_mode=opt is specified: 1. Symbol strippings. A new strip action is registered that uses Darwin tool /usr/bin/strip to remove the symbol table of the linked binary. 2. Dead-code strippings, which uses linker flag "--dead_strip" to remove unreachable code in binary link action. RELNOTES: Perform symbol and dead code strippings on linked binaries generated by ObjC rules. -- MOS_MIGRATED_REVID=96551473
* Doc cleanup for PDOPV, re: its change pruning behaviorGravatar Mark Schaller2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96439703
* Make MissingDepException staticGravatar Mark Schaller2015-06-23
| | | | | | | No need for it to be otherwise. -- MOS_MIGRATED_REVID=96437024
* Convert SkyQueryEnvironment#preloadOrThrow to use batch operations where it ↵Gravatar Janak Ramakrishnan2015-06-23
| | | | | | | | | make sense. We could convert the target pattern requests to be batched as well, but there should generally be a small number of those, so I didn't think it was worth it. -- MOS_MIGRATED_REVID=96436553
* Convert SkyQueryEnvironment#buildTransitiveClosure to use batch operations.Gravatar Janak Ramakrishnan2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96433497
* Log SkyKeys detected changed across buildsGravatar Michajlo Matijkiw2015-06-23
| | | | | | | | Similar to previous approach, except diff-awareness agnostic. Log SkyKeys as is for simplicity- this is all for human consumption anyway. -- MOS_MIGRATED_REVID=96428248
* Allow LinkCommandLine to have a null output.Gravatar Han-Wen Nienhuys2015-06-23
| | | | | | | This has the effect of suppressing the -o option. -- MOS_MIGRATED_REVID=96418661
* Skylark: Fix crash when computed attribute has the wrong typeGravatar Laurent Le Brun2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96417471
* Simple concurrency tests for EvaluableGraph implementations.Gravatar Googler2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96414434
* Skylark: Test rules are implictly executable.Gravatar Laurent Le Brun2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96407941
* Add Closure JS rules to Bazel.Gravatar Kamil Jiwa2015-06-23
| | | | | -- MOS_MIGRATED_REVID=96406988
* Add truth-0.27.jar to third_party/truth.Gravatar Philipp Wollermann2015-06-22
|
* Update of the roadmap for the BetaGravatar Damien Martin-Guillerez2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96405494
* Stop "no generating action" exceptions for configurableGravatar Greg Estren2015-06-19
| | | | | | | | | | | | | | | | | | | cc_library "srcs". The underlying problem is that Bazel determines whether or not to generate a .so by the contents of "srcs", but this happens in the loading phase before configurations are known. So, when "srcs" is configurable, it conservatively assumes a .so needs to be generated. In cc_library analysis, when the final values for "srcs" is properly bound, the .so may not actually be needed after all. This cl fixes the discrepancy by registering a FailAction for the .so under those circumstances - we don't actually need the .so anywhere but we still have to ensure it's registered with an owning action. -- MOS_MIGRATED_REVID=96405079
* Trivial skylark testingGravatar Francois-Rene Rideau2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96404668
* Lower the requirement to Java 7Gravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | | Now that we are using the error-prone javac, there is no need to impose Java 8. However, because some of our tests are targetting Java 8, developer should still use a JDK 8 to tests. -- MOS_MIGRATED_REVID=96400914
* Properly support textual_hdrs.Gravatar Googler2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96400739
* Use --expunge to bazel clean for the deterministic testGravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | | When doing the deterministic test on Bazel, some output files of previous compilation where still there and the result of the compilation wouldn't be perfect. -- MOS_MIGRATED_REVID=96396183
* Added ErrorProne's javacGravatar Damien Martin-Guillerez2015-06-19
| | | | | Downloaded from Maven Central: http://central.maven.org/maven2/com/google/errorprone/javac/1.9.0-dev-r2644-1/javac-1.9.0-dev-r2644-1.jar
* Update Bazel's errorprone to 2.0.3Gravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | | | | | It also add the annotations artifacts as the ErrorProne plugin of JavaBuilder now needs it. The artifacts are dowloaded from: https://oss.sonatype.org/content/repositories/releases/com/google/errorprone/error_prone_core/2.0.3/ https://oss.sonatype.org/content/repositories/releases/com/google/errorprone/error_prone_annotations/2.0.3/ -- MOS_MIGRATED_REVID=96392823
* Reintroduce langtools and langtools-neverlink in jdk.BUILDGravatar Damien Martin-Guillerez2015-06-19
| | | | | | | | Removing them would break people that have their tools folder checked in their workspace. -- MOS_MIGRATED_REVID=96392423
* Apply Bootstrap styles to header inclusion checking table. Use <code> ratherGravatar David Chen2015-06-19
| | | | | | | than <em> for file names on C++ Basics page. -- MOS_MIGRATED_REVID=96390710
* Cleanup in PackageFactoryGravatar Laurent Le Brun2015-06-19
| | | | | | | | | | | - Remove the subinclude function (subinclude calls should be removed by preprocessor). - Restrict visibility where it makes sense #codehealth -- MOS_MIGRATED_REVID=96389259
* Improve readability of Build Encyclopedia summary table on bazel.io.Gravatar David Chen2015-06-19
| | | | | | | Add Bootstrap styles to all tables on Test Encyclopedia for bazel.io. -- MOS_MIGRATED_REVID=96388455
* Description redacted.Gravatar John Field2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96384950
* Move the Error Prone plugin into BazelGravatar Liam Miller-Cushon2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96365813
* Clean up AllPathsFunction and get rid of getFwdDeps(Target) and ↵Gravatar Janak Ramakrishnan2015-06-19
| | | | | | | getReverseDeps(Target) from the QueryEnvironment interface, since they're no longer needed by any query functions, and also WalkableGraph#get{Direct,Reverse}Deps(SkyKey). -- MOS_MIGRATED_REVID=96361760
* Log a message when we wipe invalidate the transitive closure of all ↵Gravatar Nathan Harmata2015-06-19
| | | | | | | ConfiguredTargets because of a configurations change. -- MOS_MIGRATED_REVID=96361754
* Renaming ExecutorShutdownUtil to ExecutorUtil, since it doesn't just do ↵Gravatar Eric Fellheimer2015-06-19
| | | | | | | shutdown operations. -- MOS_MIGRATED_REVID=96351438
* Add some utilities and relax some visibility restrictions to make ↵Gravatar Janak Ramakrishnan2015-06-19
| | | | | | | alternative include scanning implementations possible. -- MOS_MIGRATED_REVID=96337469
* Xcode project file support for structured resources defined in attribute ↵Gravatar Rumou Duan2015-06-19
| | | | | | | "structured_resources" on ObjC rules. -- MOS_MIGRATED_REVID=96332700
* Add warnings, notices, human readable output and png compression to actool ↵Gravatar Googler2015-06-19
| | | | | | | | | by default. RELNOTES:none -- MOS_MIGRATED_REVID=96332527
* Move J2ObjCLibrary and supporting classes to Bazel, and enable J2ObJC in Bazel.Gravatar Michael Thvedt2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96324830
* StdRedirect library for interposing iOSSimulator so we can redirect ↵Gravatar Googler2015-06-19
| | | | | | | | | stdin,stdout,stderr. A full example of its usage is in RunTests.sh. -- MOS_MIGRATED_REVID=96319787
* Rollback of commit 14b437bf749baf0488cfc7e4ed7589dc4af9bec3.Gravatar Mark Schaller2015-06-19
| | | | | | | | | | | | | | | | | | | *** Reason for rollback *** [] *** Original change description *** Implement smart negation for target pattern sequences This change uses the types of target patterns, and the order they appear in the sequence, to construct a more efficiently processable sequence of target pattern keys. Redundant patterns are eliminated and negated TargetsBelowDirectory patterns are excluded from higher-up positive patterns. -- MOS_MIGRATED_REVID=96317483
* Fix SyntaxTreeVisitor for LoadStatement.Gravatar Laurent Le Brun2015-06-19
| | | | | | | Also, some cleanup in the code - #codehealth -- MOS_MIGRATED_REVID=96315466
* Minimal RecursivePkgValue#toString() for debug purposesGravatar Michajlo Matijkiw2015-06-19
| | | | | -- MOS_MIGRATED_REVID=96312993
* Documentation: fix docs of value of --show_progress_rate_limit.Gravatar Laszlo Csomor2015-06-18
| | | | | | | Default value was wrong and semantics were not documented in enough detail. -- MOS_MIGRATED_REVID=96312299
* Travis CI: force creation of ci directory to make Travis happyGravatar Damien Martin-Guillerez2015-06-18
| | | | | | | | | | Until the actual release process is polished, another hack in Travis configuration to make travis green. Tested on osx-ci branch (https://travis-ci.org/google/bazel/jobs/67353429). -- MOS_MIGRATED_REVID=96312144
* Minor cleanup: Unnecessary "static" on interface.Gravatar Eric Fellheimer2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96302792
* Move split/no-split command-line decision to CppLinkAction.Gravatar Han-Wen Nienhuys2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96301836
* Move C++ deps into the correct ActionContextConsumers.Gravatar Philipp Wollermann2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96301465
* Make strategy matching stricter, remove wrong entries in returned map from ↵Gravatar Philipp Wollermann2015-06-18
| | | | | | | StandaloneContextConsumer. -- MOS_MIGRATED_REVID=96300473
* Convert ActionContextProvider to an abstract class. This gets rid of a lot ↵Gravatar Philipp Wollermann2015-06-18
| | | | | | | of empty, unused methods in child classes. -- MOS_MIGRATED_REVID=96299366