aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules
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
* 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
* 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
* 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
* 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
* 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
* Add an empty RunfilesProvider to cc_toolchain_suite to fulfill the contract ↵Gravatar Alex Humesky2015-08-21
| | | | | | | in RuleConfiguredTarget. -- MOS_MIGRATED_REVID=101166333
* Fix output of query --output=buildGravatar Laurent Le Brun2015-08-21
| | | | | | | Implicit attributes start with '_' to make the output parsable. -- MOS_MIGRATED_REVID=101151243
* 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
* 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
* 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
* Skylark rules can no longer overwrite built-in attributes.Gravatar Florian Weikert2015-08-20
| | | | | -- MOS_MIGRATED_REVID=101015647
* 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
* 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
* Deduplicate XCode target names in the dependencies propagated to XCode projects.Gravatar Michael Thvedt2015-08-20
| | | | | -- MOS_MIGRATED_REVID=100924958
* Skylark error messages now include a stack trace.Gravatar Florian Weikert2015-08-20
| | | | | | | This means that some tests had to be changed from using exact equality of error messages to working with contains() / startsWith(). -- MOS_MIGRATED_REVID=100923593
* Fail more verbosely in LinkerInputs.java.Gravatar Han-Wen Nienhuys2015-08-18
| | | | | -- MOS_MIGRATED_REVID=100913716
* Change the paths of a few temporary directories javac uses so that they ↵Gravatar Lukacs Berki2015-08-18
| | | | | | | | | don't clash with some Android artifacts. Ideally, we'd simply put these in a temp directory, but we currently have no mechanism for cleaning up temp directories after each action and we don't have sandboxing yet, so we can't rely on that, either. -- MOS_MIGRATED_REVID=100907458
* Change Objective-C defaults to match current versions.Gravatar Googler2015-08-18
| | | | | | | RELNOTES: Change Objective-C defaults to sdk 8.4 and ios_cpu=x86_64 (64-bit simulator). -- MOS_MIGRATED_REVID=100890740
* Split Skylark Library into multiple pages, one per module. Add collapsibleGravatar David Chen2015-08-18
| | | | | | | | submenus to sidebar, and expand and highlight the link for the current page. Collapse sidebar on mobile and expose button for toggling sidebar. -- MOS_MIGRATED_REVID=100836792
* Add Bridging Header attribute to objc_ compilation rulesGravatar Dmitry Shevchenko2015-08-17
| | | | | | | This allows Swift code to import and use Objective-C interfaces. -- MOS_MIGRATED_REVID=100715248
* Add an attribute 'per_proto_includes' which can be set on an ↵Gravatar Googler2015-08-14
| | | | | | | | | objc_proto_library overriding the global setting. This is needed as third_party libraries often do not use depot-relative include paths. RELNOTES: Add objc_proto_library.per_proto_includes attribute. -- MOS_MIGRATED_REVID=100637689
* Open-source full support for J2ObjC in Bazel, including dead code removal, ↵Gravatar Michael Thvedt2015-08-13
| | | | | | | and add an example. -- MOS_MIGRATED_REVID=100493818
* Set the workspace suffix for runfilesGravatar Kristina Chodorow2015-08-13
| | | | | | | This CL covers the "easy" cases. Followup CLs will take care of couple dozen remaining gnarly ones. -- MOS_MIGRATED_REVID=100479410
* UTF-8 encoded template substitution values are now properly displayed.Gravatar Florian Weikert2015-08-12
| | | | | -- MOS_MIGRATED_REVID=100410176
* Resolve TODO now that the feature configuration supports conditional expansionGravatar Manuel Klimek2015-08-12
| | | | | | | of flag sets. -- MOS_MIGRATED_REVID=100400672
* Experimental support for ios_framework rulesGravatar Dmitry Shevchenko2015-08-12
| | | | | | | | | | | | | | | | | | | | | * Allows for building and linking to a framework in ios_application * Currently only works for single arch builds * Xcode generation produces correct target type, but is mostly untested The implementation is very similar to that of objc_framework: 1) Build the ios_framework_binary as a dynamic library (-dynamiclib) 2) Symlink the library and public headers to a staging location, inside of "X.framework" bundle. Where X is the name under ios_framework_binary#framework_name 3) Pass the bundle content to ObjcCommon.addFrameworkImports, reusing the core of objc_framework rule implementation. This results in correctly set -F/-framework flags and allows clients to use the framework in a way they would use any SDK/3rd-party framework. It's allowed to import headers via #import <X/X.h> call. 4) Copy the binary and all resources into final application bundle under Frameworks/X.framework 5) Sign the app and nested frameworks -- MOS_MIGRATED_REVID=100397239
* Remove -fprofile-dir flag from clang flags.Gravatar Googler2015-08-12
| | | | | | | xcode 6.4 upgrades clang from 6.0 to 6.1, which no longer needs this flag. -- MOS_MIGRATED_REVID=100383635
* Patch the PATH for linker on Windows, in the same way as for compiler.Gravatar Dmitry Lomov2015-08-12
| | | | | -- MOS_MIGRATED_REVID=100368051
* When using a SpawnAction with command, the action automatically adds the ↵Gravatar Florian Weikert2015-08-12
| | | | | | | | | runfiles of inputs that are a) executable and b) in host configuration. This is necessary because "command" could lead to the execution of a binary that might rely on one or more runfiles. However, SpawnAction didn't know about these runfiles, which meant that they were not copied to the runfiles area, thus leading to an error. -- MOS_MIGRATED_REVID=100361726
* Updates documentation for bind, new_http_archive, and new_git_repository for ↵Gravatar Alex Humesky2015-08-11
| | | | | | | consistency, accuracy, and clarity. -- MOS_MIGRATED_REVID=100320358
* Convert the coverage flags to use the feature configuration.Gravatar Manuel Klimek2015-08-11
| | | | | -- MOS_MIGRATED_REVID=100281959
* Add a feature to control whether we provide transitive header modules to aGravatar Manuel Klimek2015-08-11
| | | | | | | modules enabled build. -- MOS_MIGRATED_REVID=100272810
* Experimental support LLVM ThinLTO.Gravatar Han-Wen Nienhuys2015-08-11
| | | | | | | | | | | | | | | | | | | | | | ThinLTO is a Link Time Opimization strategy, where the inlining step operates on LLVM intermediate code, and is sharded across multiple compiler invocations, so they can be parallelized. For more information, see http://llvm.org/devmtg/2015-04/slides/ThinLTO_EuroLLVM2015.pdf Using this features requires an experimental LLVM toolchain, with the following stanza in CROSSTOOL feature { name: "thin_lto" flag_set { action: "c-compile" action: "c++-compile" flag_group { flag: "-Xclang-only=-Wno-inconsistent-missing-override" flag: "-flto" flag: "-O2" } } } -- MOS_MIGRATED_REVID=100269776
* Skylark rules can now declare their required configuration fragmentsGravatar Florian Weikert2015-08-10
| | | | | -- MOS_MIGRATED_REVID=100163482
* Annotate every single rule with required configuration fragments.Gravatar Ulf Adams2015-08-10
| | | | | | | It's not locked down yet as Skylark rules can't declare required fragments. -- MOS_MIGRATED_REVID=100113647
* Feature configuration: add a field required_variables on flag_sets.Gravatar Manuel Klimek2015-08-06
| | | | | | | | | | | | | This allows to prevent expansion of flag sets based on whether build variables are available. If required_variables is not set, and a variable that is referenced in the flag_set's flags is not available, the build will fail. We need the new behavior when some input files (for example profile data in FDO enabled builds) are only available for a subset of the translation units of a given target. -- MOS_MIGRATED_REVID=100028996
* Allow the feature configuration to support structured build variables of nestedGravatar Manuel Klimek2015-08-06
| | | | | | | list type. -- MOS_MIGRATED_REVID=100024899
* Skylark: In addition to using ctx.configuration.fragment(CONF), the build ↵Gravatar Florian Weikert2015-08-06
| | | | | | | configuration can now be accessed via ctx.fragments.CONF where CONF is in {cpp, jvm, java}. -- MOS_MIGRATED_REVID=100016978
* Remove the Skylark data configuration accessor and the only repositoryGravatar Greg Estren2015-08-05
| | | | | | | | | | | use of that accessor. Data configuration access here complicates the first phase of dynamic configuration support. And the current use doesn't specifically need this configuration. We can always add support back in if there's demand. -- MOS_MIGRATED_REVID=99938987
* Removed BuildConfiguration.Fragment#getName() and #isSkylarkVisible().Gravatar Florian Weikert2015-08-05
| | | | | | | Instead, the SkylarkModule annotation is being used to identify fragments that are visible in Skylark. -- MOS_MIGRATED_REVID=99930512