aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
Commit message (Collapse)AuthorAge
* Minimize calls to AggregatingAttributeMapper.visitAttribute. Attributes withGravatar Greg Estren2015-04-15
| | | | | | | | | multiple selects run the risk of exponential value growth, so we shouldn't request a full iteration of possible values unless that's really what the caller needs. -- MOS_MIGRATED_REVID=91118257
* Clarify requirement for source file on objc_binary.Gravatar Peter Schmitt2015-04-15
| | | | | -- MOS_MIGRATED_REVID=91100927
* Improves the method xcodegen uses to find the workspace rootGravatar David Santiago2015-04-15
| | | | | | | | | | | | | | | | | This fixes an issue where xcodegen would generate .xcodeproj files that could not successfully be built by Xcode or xcodebuild. The issue was that the method used to find the workspace root was based on path-traversal logic starting on a file that was in bazel's directory. This resulted in an incorrect workspace root for projects that were not sharing a workspace with bazel itself. The new code finds a source file in the target list, takes its absolute path, and then walks up a directory for each path segment in its relative path. It uses the result as the workspace root. -- Change-Id: Id32eea56c8cc07289fce4e94046872552abeb416 MOS_MIGRATED_REVID=91095436
* More ValidationEnvironment cleanup, remove SkylarkType.GLOBAL.Gravatar Laurent Le Brun2015-04-15
| | | | | | | We don't need to store object methods, just global values. -- MOS_MIGRATED_REVID=91094780
* Make the indirect dependency message show the correct label for external depsGravatar Kristina Chodorow2015-04-15
| | | | | | | | | Previously it would show the relative path within the external dep (e.g., in the given test, "** Please add the following dependencies: x to //a:a"). Fixes https://github.com/google/bazel/issues/112. -- MOS_MIGRATED_REVID=91093258
* Simplify MethodLibrary.Gravatar Laurent Le Brun2015-04-15
| | | | | | | Type information for methods is not needed anymore. -- MOS_MIGRATED_REVID=91088042
* Enable accepting external contributions to the BE's static parts.Gravatar Laszlo Csomor2015-04-14
| | | | | -- MOS_MIGRATED_REVID=91084448
* Use fully qualified paths for C++ includesGravatar Kristina Chodorow2015-04-14
| | | | | | | This fixes https://github.com/google/bazel/issues/66. -- MOS_MIGRATED_REVID=91083724
* Fix Bazel integration tests.Gravatar Lukacs Berki2015-04-14
| | | | | -- MOS_MIGRATED_REVID=91082035
* Move the Android incremental deployment stub application to the Bazel tree.Gravatar Lukacs Berki2015-04-14
| | | | | | | Note that the code in the Android source tree does not currently compile because Bazel does not make the Android classes available yet in any form. -- MOS_MIGRATED_REVID=91077712
* Enable external contribution to src/main/java/**Gravatar Damien Martin-Guillerez2015-04-14
| | | | | | | Also removed useless bazel-constants-srcjar.sh -- MOS_MIGRATED_REVID=91075224
* Check that getenv() returns non-null in blaze::Which()Gravatar Damien Martin-Guillerez2015-04-14
| | | | | | | | getenv() returns value was not checked for non-null result and it led to exception raised at runtime on some corner case (see bug #113). -- MOS_MIGRATED_REVID=91071694
* Shrink EvaluationContext a bitGravatar Francois-Rene Rideau2015-04-14
| | | | | | | | Move some functionality to its only current client SkylarkShell, mark some accessor @VisibleForTesting and remove those not currently used for testing. -- MOS_MIGRATED_REVID=91033050
* Use Artifacts instead of Paths in the pregrepped files map.Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | We already have them as artifacts, so it's less work, and this facilitates Skyframe-native include scanning. -- MOS_MIGRATED_REVID=91020322
* Configurable attributes: support embeddable selects. With thisGravatar Greg Estren2015-04-14
| | | | | | | | | | | | | | | | change, the following syntax: deps = [':always'] + select({':a': [':adep'], ':b': [':bdep']}) or deps = select({':a': [':adep'], ':b': [':bdep']}) + select({':c': [':cdep'], ':d': [':ddep']}) works. -- MOS_MIGRATED_REVID=91016337
* Belated cleanup of MetadataHandler#discardMetadata. Since we have per-action ↵Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | metadata handlers, we can just unconditionally discard all output metadata with this call. -- MOS_MIGRATED_REVID=91008004
* Delete debugging code used to diagnose bug when shared actions raced to execute.Gravatar Janak Ramakrishnan2015-04-14
| | | | | -- MOS_MIGRATED_REVID=91007686
* Don't create duplicate ExtractInclusionActions just because user specifies ↵Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | the same header twice in their BUILD file. -- MOS_MIGRATED_REVID=90995905
* Delete unused code.Gravatar Janak Ramakrishnan2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90994953
* Pick default resources based on the Runtime.maxMemory andGravatar Han-Wen Nienhuys2015-04-14
| | | | | | | | | | | | Runtime.availableProcessors. Previously, the fallback was a hardcoded 3G / 2 CPUs. This increases parallelism on modern OSX hardware. Fixes #101. -- MOS_MIGRATED_REVID=90994895
* Remove make variable GNU_TARGET from blaze.Gravatar Han-Wen Nienhuys2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90994015
* Fix race when two shared actions don't know about each other until after ↵Gravatar Janak Ramakrishnan2015-04-14
| | | | | | | | | they have started executing in SkyframeActionExecutor. We were updating the action cache for both actions in this case, but one of the actions' metadata handler was not updated during execution, and thus it had no metadata for outputs. -- MOS_MIGRATED_REVID=90993813
* Enable test sharding for bazel_example_testGravatar Damien Martin-Guillerez2015-04-14
| | | | | | | | | Test sharding run the same "bazel" test in parallel. The unittest.bash framework then distribute the test functions equally on the various shard. -- MOS_MIGRATED_REVID=90990754
* Remove autosense logic.Gravatar Han-Wen Nienhuys2015-04-14
| | | | | | | | | | | | | Polling the machine load can never work, because the following scenarios are quite common: * Tasks that are faster than the poll cycle time. * Tasks whose CPU and/or RAM consumption changes over the lifetime of the task. -- MOS_MIGRATED_REVID=90990445
* Make the source jars filegroup hidden so that it doesn't show up in the ↵Gravatar Lukacs Berki2015-04-14
| | | | | | | master log, requiring O(n^2) lines for groups of closely related targets. -- MOS_MIGRATED_REVID=90990029
* Support running extra_actions on [].Gravatar Googler2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90988858
* Eliminate SkylarkType.toMap() in favor of ImmutableMap.copyOf() and simplify Gravatar Lukacs Berki2015-04-14
| | | | | | | SkylarkType.castMap() a little. -- MOS_MIGRATED_REVID=90988088
* Cleanup: Build file.cc as part of util library.Gravatar Thiago Farina2015-04-14
| | | | | | | | | | | | | | | | | | | | | | Looks like in the transition it was forgotten to be moved to the new location. As an effect of this change it was discovered that file.cc had an dependency back on blaze_util.cc (from client binary for die/pdie functions). In order to fix that dependency we have had to move die/pdie functions into util library (added errors.(cc|h)) for this. Tested on Linux with the following command lines: $ ./compile.sh $ ./output/bazel build //src/main/cpp:all $ ./output/bazel build //src:bazel $ ./bootstrap_test.sh all -- Change-Id: I70fb1b6189dc5af31f816332d76efe380ef26302 MOS_MIGRATED_REVID=90987514
* Inline TestConstants.TEST_WORKSPACE_DIRECTORY.Gravatar Ulf Adams2015-04-14
| | | | | -- MOS_MIGRATED_REVID=90984191
* A minor refactoring.Gravatar Lukacs Berki2015-04-13
| | | | | -- MOS_MIGRATED_REVID=90981107
* Skylark: Remove static type checking of variables/functions.Gravatar Laurent Le Brun2015-04-13
| | | | | | | | There are still some static checks (check existence of variable/function, readonly variables, etc.). More cleanup will come later. -- MOS_MIGRATED_REVID=90979748
* Move com/google/devtools/build/lib/rules/workspace/* to ↵Gravatar Lukacs Berki2015-04-13
| | | | | | | | | com/google/devtools/build/lib/bazel/rules/workspace to match the files' package declarations. This is cloned from ahumesky's [] so that we can submit it as early as possible. -- MOS_MIGRATED_REVID=90977537
* Extract boilerplate logic from ParallelEvaluator's SkyFunction.Environment ↵Gravatar Janak Ramakrishnan2015-04-13
| | | | | | | | | implementation. This slightly shortens the massive ParallelEvaluator file, and also allows alternate Environment implementations to avoid repeating the boilerplate. -- MOS_MIGRATED_REVID=90830529
* Explicitly use bash to test negative exit codesGravatar Kristina Chodorow2015-04-13
| | | | | | | | | | | | sh doesn't actually support negative exit codes, so if someone (Travis) uses a different version than we're using, they'll get exit code 2 (misuse of shell builtin), not <exit code>%256. See https://lists.gnu.org/archive/html/bug-bash/2011-08/msg00027.html for some examples/discussion. -- MOS_MIGRATED_REVID=90828267
* Simplify Skylark testsGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | | | | | | | | | Use the new EvaluationContext infrastructure to simplify Skylark tests (said infrastructure is originally based on code from these tests). Merge AbstractEvaluationTestCase and AbstractParserTestCase into a non-abstract class EvaluationTestCase that uses EvaluationContext. Cleanup the EventCollectionApparatus it uses. Refactor all Skylark tests to use this new infrastructure. Fix EvaluationTest and MethodLibraryTest to actually and correctly run tests in both modes. Fix small bugs in the main code base discovered by actually running the code in both modes, and make error messages identical when possible. -- MOS_MIGRATED_REVID=90828053
* Move NativeDepsHelper into the public tree.Gravatar Michael Staib2015-04-13
| | | | | -- MOS_MIGRATED_REVID=90828000
* Don't take into account symlinks when computing intrabuild file ↵Gravatar Miguel Alcon Pinto2015-04-13
| | | | | | | modifications. While there could be bogus targets that modify symlinks, Bazel has output symlinks that point to source code. -- MOS_MIGRATED_REVID=90827597
* Skylark builtin function cleanupsGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | Clean up related to Skylark builtin functions. Replace "hidden" field of some annotations with a "documented" field (with reversed semantics). -- MOS_MIGRATED_REVID=90827020
* Allow evaluation from StringGravatar Francois-Rene Rideau2015-04-13
| | | | | | | | | | | | | | | | | | | Lift the Evaluation code from the test files AbstractParserTestCase and AbstractEvaluationTestCase into new files EvaluationContext. Remove this code's dependency on FsApparatus (and thus to InMemoryFS), by making the Lexer accept null as filename. Also remove dependency on EventCollectionApparatus; parameterized by an EventHandler. Have the SkylarkSignatureProcessor use this Evaluation for defaultValue-s. While refactoring evaluation, have SkylarkShell use it, which fixes its ValidationEnvironment issues. TODO: refactor the tests to use this new infrastructure. -- MOS_MIGRATED_REVID=90824736
* Make Artifacts be compared to each other based on their exec paths (and not ↵Gravatar Lukacs Berki2015-04-13
| | | | | | | | | their paths). This gives a predictable order in places where Artifacts are sorted by their natural order. This works because exec paths of Artifacts are unique in any given build. -- MOS_MIGRATED_REVID=90807141
* Use int64_t for the offset argument of libarchive function call.Gravatar Han-Wen Nienhuys2015-04-13
| | | | | | | | | off_t and int64_t are different on 32-bit platforms. Fixes #18. -- MOS_MIGRATED_REVID=90802730
* Rewrite tests to avoid /[]/ in the paths.Gravatar Ulf Adams2015-04-13
| | | | | -- MOS_MIGRATED_REVID=90799686
* Replaying commit 49e14592032ea5312e3866d8988c6900508abf2dGravatar Damien Martin-Guillerez2015-04-13
| | | | | | | It was unwillingly rolled-back by a previous commit. -- MOS_MIGRATED_REVID=90790741
* Enable external contribution on Objective-C tooling.Gravatar Damien Martin-Guillerez2015-04-13
| | | | | | | Also add missing Apache headers to the related protobuf files. -- MOS_MIGRATED_REVID=90787266
* Add a visibility predicate to blaze query.Gravatar Liam Miller-Cushon2015-04-10
| | | | | | | | | | The visible(x, y) query expression computes the subset of nodes in y visible from all nodes in x. RELNOTES: Add a visibility predicate to blaze query. -- MOS_MIGRATED_REVID=90765071
* objc: Add flag to disable per-proto includesGravatar Daniel Wagner-Hall2015-04-10
| | | | | -- MOS_MIGRATED_REVID=90750827
* Provide cleaner syntax error messages using select.Gravatar Greg Estren2015-04-10
| | | | | | | | | | | | | | Given: genrule(srcs = ['somefile'] + select({...})) Before this change: ERROR: unsupported operand type(s) for +: 'List' and 'SelectorValue' After this change: ERROR: unsupported operand type(s) for +: 'List' and 'select' -- MOS_MIGRATED_REVID=90750232
* Clear dirty output tree counters so that the next build does not get the old ↵Gravatar Miguel Alcon Pinto2015-04-10
| | | | | | | counters. -- MOS_MIGRATED_REVID=90749273
* Open-source Bazel bash completion scriptGravatar Damien Martin-Guillerez2015-04-10
| | | | | | | | | This script enable shell completion for Bazel inside the Bourne-again shell. Fixes #38 -- MOS_MIGRATED_REVID=90745457
* Added an help command to dump all options for completionGravatar Damien Martin-Guillerez2015-04-10
| | | | | | | | | | `bazel help completion` dump all options completion pattern for each command, giving hints on the format of the completion residue (e.g., `label`, `path`, `{a,enum}`, ...). This dump can be used to generate completion scripts. -- MOS_MIGRATED_REVID=90743024