aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* Rollback of commit 156adeec613ab140a91d73e1147bc688689bcfb7.Gravatar Lukacs Berki2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks Bazel on JDK 7: http://ci.bazel.io/view/Dashboard/job/bazel-tests/BAZEL_VERSION=HEAD-jdk7,PLATFORM_NAME=linux-x86_64/475/console *** Original change description *** Automated [] rollback of commit 5163ec2c0db8fbdc7f367bb4aca5b6d7ae6d80b0. *** Reason for rollback *** See unknown commit *** Original change description *** Automated [] rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807. *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144443446 MOS_MIGRATED_REVID=144443446
* Rollback of commit 5163ec2c0db8fbdc7f367bb4aca5b6d7ae6d80b0.Gravatar Liam Miller-Cushon2017-01-13
| | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** See unknown commit *** Original change description *** Automated [] rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807. *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144344329 MOS_MIGRATED_REVID=144344329
* Make android_sdk_repository create one android_sdk per api level in the SDK.Gravatar Adam Michael2017-01-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | api_level is no longer required. It now sets the default android_sdk that is used if the --android_sdk flag is not passed. If it is not set, the highest api_level will be used as the default. The new behavior is demonstrated by the following example: $ ls $ANDROID_HOME/platforms android-21 android-22 android-23 $ cat WORKSPACE android_sdk_repository( name = "foo", ) $ bazel build //java/my/app # uses api level 23 $ bazel build --android_sdk=@foo//:sdk-22 //java/my/app # uses api level 22 $ cat > WORKSPACE <<EOF android_sdk_repository( name = "foo", api_level = 21, ) EOF $ bazel build //java/my/app # uses api level 21 $ bazel build --android_sdk=@foo//:sdk-23 //java/my/app # uses api level 23 See https://github.com/bazelbuild/bazel/issues/2284 for the master plan for android_sdk_repository. RELNOTES: android_sdk_repository no longer requires api_level. If one is not specified, the highest android platform installed will be used. Furthermore, android_sdk's are created for all android platforms installed and can be specified with the --android_sdk flag. -- PiperOrigin-RevId: 144258881 MOS_MIGRATED_REVID=144258881
* Add --swiftcopt support to swift_libraryGravatar Dmitry Shevchenko2017-01-12
| | | | | | -- PiperOrigin-RevId: 144231300 MOS_MIGRATED_REVID=144231300
* Rollback of commit c9dbd4c1a4a4b4345c0b3924f86e01612ae12807.Gravatar Marcel Hlopko2017-01-11
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks bazel-docker-tests http://ci.bazel.io/view/Dashboard/job/bazel-docker-tests/lastCompletedBuild/BAZEL_VERSION=HEAD,PLATFORM_NAME=docker/console *** Original change description *** Enable header compilation by default -- PiperOrigin-RevId: 144176396 MOS_MIGRATED_REVID=144176396
* In the j2objc wrapper script, add the ability to process more than one ↵Gravatar Rumou Duan2017-01-10
| | | | | | | | | | source jars. In the j2objc dead code removal script, quote the object file names when invoking ar. They may contain special shell characeters. -- PiperOrigin-RevId: 143993977 MOS_MIGRATED_REVID=143993977
* Enable header compilation by defaultGravatar Liam Miller-Cushon2017-01-10
| | | | | | -- PiperOrigin-RevId: 143972504 MOS_MIGRATED_REVID=143972504
* Remove method presence check after a bazel releaseGravatar Dmitry Shevchenko2017-01-10
| | | | | | -- PiperOrigin-RevId: 143966520 MOS_MIGRATED_REVID=143966520
* Separate bazel/blaze-specific changes in IntelliJ aspect.Gravatar Googler2017-01-09
| | | | | | -- PiperOrigin-RevId: 143905310 MOS_MIGRATED_REVID=143905310
* Create indirections to intellij_info.bzl.Gravatar Googler2017-01-09
| | | | | | -- PiperOrigin-RevId: 143864069 MOS_MIGRATED_REVID=143864069
* Remove filegroups in tools/android/BUILD.tools in favor of aliases.Gravatar Adam Michael2017-01-09
| | | | | | -- PiperOrigin-RevId: 143825037 MOS_MIGRATED_REVID=143825037
* Rollback of commit 27895101ce3d8e88b80e53f98fccf1d72310b54d.Gravatar Googler2017-01-09
| | | | | | | | | | | | | | *** Reason for rollback *** Breaks mac integration test *** Original change description *** Create indirections to intellij_info.bzl. -- PiperOrigin-RevId: 143802424 MOS_MIGRATED_REVID=143802424
* Create indirections to intellij_info.bzl.Gravatar Googler2017-01-09
| | | | | | -- PiperOrigin-RevId: 143793200 MOS_MIGRATED_REVID=143793200
* Remove conditionals in skylark apple rules for presence of ↵Gravatar Chris Parsons2017-01-06
| | | | | | | | objc.dynamic_framework_dir -- PiperOrigin-RevId: 143700968 MOS_MIGRATED_REVID=143700968
* Force debug info output into Swift modulesGravatar Dmitry Shevchenko2017-01-05
| | | | | | | | * This makes sure that all swiftmodule artifacts contain debug information needed for LLDB to recreate the module at runtime. -- PiperOrigin-RevId: 143685225 MOS_MIGRATED_REVID=143685225
* Split tools/android/BUILD into BUILD and BUILD.tools.Gravatar Adam Michael2017-01-05
| | | | | | | | | | | | | | This should help clear up the confusion that caused https://github.com/bazelbuild/bazel/issues/2283. Now all of the following work: bazel build //tools/android/... bazel test //tools/android/... bazel build @bazel_tools//tools/android/... -- PiperOrigin-RevId: 143666995 MOS_MIGRATED_REVID=143666995
* xcode locator prefers xcodes installed under /Applications/Gravatar Chris Parsons2017-01-03
| | | | | | -- PiperOrigin-RevId: 143463741 MOS_MIGRATED_REVID=143463741
* Support gold linker in cc_configure.bzlGravatar Marcel Hlopko2017-01-03
| | | | | | | | RELNOTES: Autodetect gold linker in cc_configure.bzl -- PiperOrigin-RevId: 143374572 MOS_MIGRATED_REVID=143374572
* Guard -pass-exit-codes to support clangGravatar Marcel Hlopko2016-12-23
| | | | | | | | | | | | | Currently using CC=clang will fail because -pass-exit-codes is an unsupported option (Github issue #2121). This is a minimal fix to add a guard for this option. -- Change-Id: I86c3415ea7280a3af1d5579c1374bfa74ce31b5d Reviewed-on: https://cr.bazel.build/8070 PiperOrigin-RevId: 142829737 MOS_MIGRATED_REVID=142829737
* Introduce --apple_crosstool_top, which sets the crosstool for sources in ↵Gravatar Cal Peyser2016-12-23
| | | | | | | | objc_*/apple_*/ios_* targets and their dependencies. -- PiperOrigin-RevId: 142793925 MOS_MIGRATED_REVID=142793925
* Add stub ios toolchain to bazel BUILD.staticGravatar Cal Peyser2016-12-23
| | | | | | -- PiperOrigin-RevId: 142775180 MOS_MIGRATED_REVID=142775180
* Rollback of commit e81ff0e156647ae680346ac833313319e7ea69d6.Gravatar Alex Humesky2016-12-22
| | | | | | | | | | | | | | | | | *** Reason for rollback *** breaks bazel: https://github.com/bazelbuild/bazel/issues/2283 http://ci.bazel.io/job/bazel-tests/432/BAZEL_VERSION=HEAD,PLATFORM_NAME=linux-x86_64/console *** Original change description *** Remove broken and unused Android tools aliases. -- PiperOrigin-RevId: 142768488 MOS_MIGRATED_REVID=142768488
* Rename toolchain_flags to legacy_link_flags build variableGravatar Marcel Hlopko2016-12-22
| | | | | | -- PiperOrigin-RevId: 142767245 MOS_MIGRATED_REVID=142767245
* Rollback of commit 87fd5baeaa3f983bbec0c0dbc7b16eb52cf2267f.Gravatar Tobias Werth2016-12-22
| | | | | | -- PiperOrigin-RevId: 142758502 MOS_MIGRATED_REVID=142758502
* Rollback of commit b7c00d8762d74fb54d0a6b0eb355abc6dc7a97c3.Gravatar Damien Martin-Guillerez2016-12-22
| | | | | | | | | | | | | | *** Reason for rollback *** Does not build: http://ci.bazel.io/job/Bazel/1129/ *** Original change description *** Export dot-format graphs as-is and download dot as an external repo -- PiperOrigin-RevId: 142748151 MOS_MIGRATED_REVID=142748151
* Move hardcoded toolchain linker flags to CROSSTOOLGravatar Marcel Hlopko2016-12-22
| | | | | | | | | | | | | This cl introduces another build variable: toolchain_flags and updates all the affected crosstools (those which started using action_configs, because the defaults from CppLinkActionConfigs are not applied then). This build variable is a requirement for follow-up refactoring exposing param_files build variable. With toolchain_flags and param_files we will have full control over flags placement on the link command line. -- PiperOrigin-RevId: 142741060 MOS_MIGRATED_REVID=142741060
* Move hardcoded -L linker flags to CROSSTOOLGravatar Marcel Hlopko2016-12-22
| | | | | | | | | | | This cl introduces another build variable: library_search_directories, removes hardcoded -L generation from blaze and updates all the affected crosstools (those which started using action_configs, because the defaults from CppLinkActionConfigs are not applied then). -- PiperOrigin-RevId: 142738674 MOS_MIGRATED_REVID=142738674
* Introduce --apple_crosstool_top, which sets the crosstool for sources in ↵Gravatar Cal Peyser2016-12-22
| | | | | | | | objc_*/apple_*/ios_* targets and their dependencies. -- PiperOrigin-RevId: 142702735 MOS_MIGRATED_REVID=142702735
* Remove broken and unused Android tools aliases.Gravatar Adam Michael2016-12-22
| | | | | | -- PiperOrigin-RevId: 142702623 MOS_MIGRATED_REVID=142702623
* Export dot-format graphs as-is and download dot as an external repoGravatar Kristina Chodorow2016-12-22
| | | | | | -- PiperOrigin-RevId: 142692462 MOS_MIGRATED_REVID=142692462
* Rollback AppleCrosstoolChangeGravatar Cal Peyser2016-12-22
| | | | | | -- PiperOrigin-RevId: 142692398 MOS_MIGRATED_REVID=142692398
* Introduce --apple_crosstool_top, which sets the crosstool for sources in ↵Gravatar Cal Peyser2016-12-22
| | | | | | | | objc_*/apple_*/ios_* targets and their dependencies. -- PiperOrigin-RevId: 142673622 MOS_MIGRATED_REVID=142673622
* Increases stack memory to 4m when executing j2objc to match what Blaze usesGravatar Googler2016-12-21
| | | | | | | | when compiling Java sources. -- PiperOrigin-RevId: 142665504 MOS_MIGRATED_REVID=142665504
* Propagate along the "test" attribute of web_test.Gravatar Googler2016-12-21
| | | | | | -- PiperOrigin-RevId: 142625447 MOS_MIGRATED_REVID=142625447
* Global cleanup change.Gravatar Kristina Chodorow2016-12-21
| | | | | | -- PiperOrigin-RevId: 142596233 MOS_MIGRATED_REVID=142596233
* Enable threaded Whole Module OptimizationGravatar Dmitry Shevchenko2016-12-21
| | | | | | | | * This seems to fix an issue with dsymutil and lldb not getting correct debug maps out of binaries built with WMO enabled. -- PiperOrigin-RevId: 142578572 MOS_MIGRATED_REVID=142578572
* Power supportGravatar Nishidha Panpaliya2016-12-21
| | | | | | | | | Closes #2139. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2139 PiperOrigin-RevId: 142570236 MOS_MIGRATED_REVID=142570236
* Fix cycle in dependency graph during bootstrapGravatar Damien Martin-Guillerez2016-12-20
| | | | | | | | | | | | | | | | This cycle was due to JacocoCoverage_deploy.jar being an implicit dependency of java_binary. We do not need the binary during bootstrap because we are not running with coverage but we need the target. Simply move it to exists as a java_import in tools/jdk. Fixes #2269. To be cherry-picked for #2246. -- Change-Id: I63aee0e76b305833ac0c0c2cae5abe1cbad5e6d1 Reviewed-on: https://cr.bazel.build/8036 PiperOrigin-RevId: 142537244 MOS_MIGRATED_REVID=142537244
* Avoids NullPointerException when running `bazel coverage //:xxx`, since ↵Gravatar Yue Gan2016-12-20
| | | | | | | | | | PathFragment.getParentDirectory() may return null. Fixes #2212. Also adds coverage-specific attributes to the java_binary rule. -- PiperOrigin-RevId: 142516883 MOS_MIGRATED_REVID=142516883
* Rollback of commit b9f914fa56a00530d38b597dc853aad50d1decfb.Gravatar Kristina Chodorow2016-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks CI "Parameter 'url' has no default value", see http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=linux-x86_64/1104/console. *** Original change description *** Make Bazel build dot This change has several parts, it: * Adds a "make" repository rule, which runs ./configure && make on a repository. * Modifies the tar.gz decompressor to restore timestamps. This was an issue with dot, as make examines the timestamp to determine if files need to be rebuilt. Because Bazel was not preserving the archive's timestamp, it was rebuilding things that it did not need to (and, I think, exposed some bugs in dot's Makefile). * Actually add dot as an externa... *** -- PiperOrigin-RevId: 142469299 MOS_MIGRATED_REVID=142469299
* Add a default ios_x86_64 toolchain stub to the automatically generated bazel ↵Gravatar Cal Peyser2016-12-19
| | | | | | | | crosstool. -- PiperOrigin-RevId: 142459402 MOS_MIGRATED_REVID=142459402
* Make Bazel build dotGravatar Kristina Chodorow2016-12-19
| | | | | | | | | | | | | | | | | | | | | | This change has several parts, it: * Adds a "make" repository rule, which runs ./configure && make on a repository. * Modifies the tar.gz decompressor to restore timestamps. This was an issue with dot, as make examines the timestamp to determine if files need to be rebuilt. Because Bazel was not preserving the archive's timestamp, it was rebuilding things that it did not need to (and, I think, exposed some bugs in dot's Makefile). * Actually add dot as an external repository. I made the dot-graph target manual, so it won't be downloaded/built by the default //... target. * Remove dot scrubbing from the Bazel export process. * Added some names to download_and_extract params, because it's really annoying to only be able to reference them positionally. -- PiperOrigin-RevId: 142452055 MOS_MIGRATED_REVID=142452055
* Only enable _FORTIFY_SOURCE for opt builds.Gravatar Marcel Hlopko2016-12-16
| | | | | | | | | | | | | | | | | | Prevents warnings like the following under fastbuild/dbg: In file included from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/x86_64-pc-linux-gnu/bits/os_defines.h:39:0, from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/x86_64-pc-linux-gnu/bits/c++config.h:482, from /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/include/g++-v5/string:38, from third_party/protobuf/3.0.0/src/google/protobuf/empty.pb.h:7, from third_party/protobuf/3.0.0/src/google/protobuf/empty.pb.cc:5: /usr/include/features.h:331:4: warning: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Wcpp] # warning _FORTIFY_SOURCE requires compiling with optimization (-O) -- Change-Id: I364bb2962ef930c9079ebddcc5855a0b4ee5c138 Reviewed-on: https://cr.bazel.build/7050 PiperOrigin-RevId: 142229574 MOS_MIGRATED_REVID=142229574
* Expose apple_generate_dsym value to Skylark and use in swift_libraryGravatar Dmitry Shevchenko2016-12-16
| | | | | | -- PiperOrigin-RevId: 142194378 MOS_MIGRATED_REVID=142194378
* pass -fno-canonical-headers only onceGravatar Marcel Hlopko2016-12-15
| | | | | | | | | | | Both compiler_flags and unfiltered_cxx_flags contained "-fno-canonical-headers". We should only need the unfiltered setting. -- Change-Id: I09d99f2bad10774e72745e437ae4900d22b8a723 Reviewed-on: https://cr.bazel.build/7730 PiperOrigin-RevId: 142171553 MOS_MIGRATED_REVID=142171553
* Add an option to enable Whole Module OptimizationGravatar Dmitry Shevchenko2016-12-15
| | | | | | | | This is not production ready, but allows us to collect user feedback on this option. -- PiperOrigin-RevId: 142166665 MOS_MIGRATED_REVID=142166665
* Rollback of commit 27cd7f6bb4a02f56f9ad73e57e71e69a1c00d5ea.Gravatar Adam Michael2016-12-15
| | | | | | | | | | | | *** Reason for rollback *** Rolling forward, intentionally breaking loading phase (and therefore `bazel fetch`) for android_binary in Bazel if no android_sdk_repository is set up. Will not submit until Tensorflow's use case is cleaned up in https://github.com/tensorflow/tensorflow/pull/6225. -- PiperOrigin-RevId: 142068703 MOS_MIGRATED_REVID=142068703
* Extract swiftc input calculation from swift_libraryGravatar Googler2016-12-14
| | | | | | -- PiperOrigin-RevId: 142046117 MOS_MIGRATED_REVID=142046117
* Extract swiftc argument generation from swift_library implementationGravatar Googler2016-12-13
| | | | | | | | | | | Make it possible to use compiler args that swift_library creates in other rules that do not depend on it. Also rename _module_name to swift_module_name and make it public because proper usage of swiftc_args requires a module name to be passed in. -- PiperOrigin-RevId: 141926959 MOS_MIGRATED_REVID=141926959
* Switch to using multi-level repository names by default.Gravatar Googler2016-12-13
| | | | | | | | | | | | When these rules were originally written, I'd wanted the repository names embeded in the tarball to have a similar shape to Blaze's output trees, but unfortunately multi-level names were not yet supported. Support for multiple levels was introduced as part of the v2 registry specification, which is now all DockerHub supports, and the vast majority of clients in circulation support multi-level names. This change implements my original intention, which is to name the resulting image: bazel/{target}. To get the legacy naming system use the attribute: embed_flat_names=True. RELNOTES[INC]: docker_build: change the repository names embedded by docker_build. You can revert to the old behavior by setting legacy_repository_naming=True. -- PiperOrigin-RevId: 141886976 MOS_MIGRATED_REVID=141886976