| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=91100927
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
We don't need to store object methods, just global values.
--
MOS_MIGRATED_REVID=91094780
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Type information for methods is not needed anymore.
--
MOS_MIGRATED_REVID=91088042
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=91084448
|
|
|
|
|
|
|
| |
This fixes https://github.com/google/bazel/issues/66.
--
MOS_MIGRATED_REVID=91083724
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=91082035
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Also removed useless bazel-constants-srcjar.sh
--
MOS_MIGRATED_REVID=91075224
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
We already have them as artifacts, so it's less work, and this facilitates Skyframe-native include scanning.
--
MOS_MIGRATED_REVID=91020322
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
metadata handlers, we can just unconditionally discard all output metadata with this call.
--
MOS_MIGRATED_REVID=91008004
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=91007686
|
|
|
|
|
|
|
| |
the same header twice in their BUILD file.
--
MOS_MIGRATED_REVID=90995905
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90994953
|
|
|
|
|
|
|
|
|
|
|
|
| |
Runtime.availableProcessors. Previously, the fallback was a hardcoded
3G / 2 CPUs.
This increases parallelism on modern OSX hardware.
Fixes #101.
--
MOS_MIGRATED_REVID=90994895
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90994015
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
master log, requiring O(n^2) lines for groups of closely related targets.
--
MOS_MIGRATED_REVID=90990029
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90988858
|
|
|
|
|
|
|
| |
SkylarkType.castMap() a little.
--
MOS_MIGRATED_REVID=90988088
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90984191
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90981107
|
|
|
|
|
|
|
|
| |
There are still some static checks (check existence of variable/function,
readonly variables, etc.). More cleanup will come later.
--
MOS_MIGRATED_REVID=90979748
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
implementation.
This slightly shortens the massive ParallelEvaluator file, and also allows alternate Environment implementations to avoid repeating the boilerplate.
--
MOS_MIGRATED_REVID=90830529
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90828000
|
|
|
|
|
|
|
| |
modifications. While there could be bogus targets that modify symlinks, Bazel has output symlinks that point to source code.
--
MOS_MIGRATED_REVID=90827597
|
|
|
|
|
|
|
|
|
|
| |
Clean up related to Skylark builtin functions.
Replace "hidden" field of some annotations with a "documented" field
(with reversed semantics).
--
MOS_MIGRATED_REVID=90827020
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
off_t and int64_t are different on 32-bit platforms.
Fixes #18.
--
MOS_MIGRATED_REVID=90802730
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90799686
|
|
|
|
|
|
|
| |
It was unwillingly rolled-back by a previous commit.
--
MOS_MIGRATED_REVID=90790741
|
|
|
|
|
|
|
| |
Also add missing Apache headers to the related protobuf files.
--
MOS_MIGRATED_REVID=90787266
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
--
MOS_MIGRATED_REVID=90750827
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
counters.
--
MOS_MIGRATED_REVID=90749273
|
|
|
|
|
|
|
|
|
| |
This script enable shell completion for Bazel inside the Bourne-again shell.
Fixes #38
--
MOS_MIGRATED_REVID=90745457
|
|
|
|
|
|
|
|
|
|
| |
`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
|