aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* rsplit's separator is now being parsed literally. As a result, special regex ↵Gravatar Florian Weikert2015-06-23
| | | | | | | characters (such as '.' or '\w') will no longer match other characters. -- MOS_MIGRATED_REVID=96603729
* Add two binary size optimizations when --compilation_mode=opt and ↵Gravatar Rumou Duan2015-06-23
| | | | | | | | | | | | --objc_enable_binary_stripping are 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: Add a flag "objc_enable_binary_stripping" to enable symbol and dead code strippings on linked binaries generated by ObjC rules. -- MOS_MIGRATED_REVID=96587585
* 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
* 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
* 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
* 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
* 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
* 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
* Add initial Rust rules to Bazel.Gravatar David Chen2015-06-18
| | | | | | | | | | | | | Todo: * Implement rust_bench_test for running benchmarks * Enable rust_test to depend solely on a rust_library (since many projects intermix #[test] methods in lib source). * Improve error checking and handling and prevent rust_binary from directly depending on cc_library. * Implement rust_doc for generating rustdoc. -- MOS_MIGRATED_REVID=96297772
* Cleanup in PackageFactory, inline createPackage function.Gravatar Laurent Le Brun2015-06-18
| | | | | | | | | | | createPackage was hard to read (both the definition and the call site) and did nothing useful (just call another function). The name was also confusing: it's not the standard way to create a package, since it's used only for tests. #codehealth -- MOS_MIGRATED_REVID=96288514
* Allow repository rules to provide default bindings for external labels.Gravatar Lukacs Berki2015-06-18
| | | | | | | The idea is that an android_sdk_repository rule would by default bind @external:android/sdk to itself, thus avoiding an unnecessary roundtrip through //tools/android:sdk . If we then also eventually bind that external label to something, we can avoid having the //tools/android:sdk rule altogether. -- MOS_MIGRATED_REVID=96285812
* experimental_ios_test: Support non-xctestsGravatar Daniel Wagner-Hall2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96245678
* Gets rid of unused actooloribtoolzip.Gravatar Googler2015-06-18
| | | | | | | | | This has been replaced by actoolzip and ibtoolzip. Also add some documentation as to how the build process for the tools work. -- MOS_MIGRATED_REVID=96239107
* Add batch methods to WalkableGraph and convert SkyQueryEnvironment to use them.Gravatar Janak Ramakrishnan2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96214911
* Add two binary size optimizations when --compilation_mode=opt is specified:Gravatar Rumou Duan2015-06-18
| | | | | | | | | | 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=96211910
* Skylark: Allow variable reassignment to change the type of a variable.Gravatar Laurent Le Brun2015-06-18
| | | | | -- MOS_MIGRATED_REVID=96211360
* Skylark: write labels readablyGravatar Francois-Rene Rideau2015-06-18
| | | | | | | | | Write a label as Label("//x:x") instead of merely "//x:x", so it can be read and evaluated back, as per the Python convention. However, the OutputFormatter for BUILD files still needs to output "//x:x". -- MOS_MIGRATED_REVID=96209979