aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
Commit message (Collapse)AuthorAge
* Add swiftmodule outputs to the linking step.Gravatar Dmitry Shevchenko2016-10-19
| | | | | | | | * This change enables most of LLDB functionality on binaries built by swift_library. It makes the linker record references to the .swiftmodule outputs, which then can be read by LLDB to deserialize Swift modules and provide debug info. -- MOS_MIGRATED_REVID=136620475
* Rollback of commit ffdc05d2278d7f9c6e299c923019f689cde5fe76.Gravatar Yun Peng2016-10-19
| | | | | | | | | *** Reason for rollback *** Causes huge memory blow-up after the analysis phase in CppLinkAction (LinkCommandLine). -- MOS_MIGRATED_REVID=136467836
* Support tvOS and fix the platform min OS version selection.Gravatar Googler2016-10-18
| | | | | -- MOS_MIGRATED_REVID=136416405
* Update MSVC CROSSTOOL to adapt 74b94328db5346e0f6c573731fcbaa85ca751304Gravatar Yun Peng2016-10-17
| | | | | | | -- Change-Id: I46e434e9add5647bd29945ba2f80a399999a4b17 Reviewed-on: https://bazel-review.googlesource.com/#/c/6692 MOS_MIGRATED_REVID=136325160
* Remove apple fragment access fallbackGravatar Chris Parsons2016-10-14
| | | | | -- MOS_MIGRATED_REVID=136161771
* Refactor AarImportRule into a base rule.Gravatar Adam Michael2016-10-14
| | | | | | | Also moves AAR-specific tools from tools/zip into tools/android and renames embedded_jar_extractor to aar_embedded_jars_extractor because in a future change it will extract classes.jar and libs/*.jar. -- MOS_MIGRATED_REVID=136099324
* RELNOTES: Remove flag --experimental_zip_tree_artifact from j2objc Java ↵Gravatar Rumou Duan2016-10-14
| | | | | | | annotation processing support. -- MOS_MIGRATED_REVID=136084697
* Add global_whole_archive into MSVC CROSSTOOLGravatar Yun Peng2016-10-12
| | | | | | | | | | | | | This feature is needed when linking the _pywrap_tensorflow.dll on Windows. Which will force link all the libraries in deps. I used /WHOLEARCHVIE to implement this, so it only works with Visual Stduio 2015 update 2 or later. -- Change-Id: I0b018d3f4f482e56d1ebf78faa08fa46e1d60bbf Reviewed-on: https://bazel-review.googlesource.com/#/c/6612 MOS_MIGRATED_REVID=135923622
* Prevent empty swift_library srcs.Gravatar Googler2016-10-12
| | | | | | | * This produces more human-readable error messages in cases where sources are omitted (e.g. if a glob matches nothing). -- MOS_MIGRATED_REVID=135920885
* Make MSVC wrapper script work with Python 3Gravatar Yun Peng2016-10-12
| | | | | | | | | Currently, TensorFlow only supports python3.5 on Windows. -- Change-Id: Ia3e805a7fdca06b79d9c00b0a2e83b9dd41e5f78 Reviewed-on: https://bazel-review.googlesource.com/#/c/6611 MOS_MIGRATED_REVID=135919759
* Explicitly specify the directories in the Android SDK needed for tests.Gravatar Adam Michael2016-10-12
| | | | | | | | | | | | //src/test/shell/bazel/test-setup.sh uses this filegroup to symlink the contents of the Android SDK into the workspace for the test. However, since we add BUILD files into the Android SDK, we don't want to copy those into the workspace because they will be regenerated by the integration test. Fixes https://github.com/bazelbuild/bazel/issues/1927. -- MOS_MIGRATED_REVID=135858750
* Added support for rex to optionally compress dex files.Gravatar Googler2016-10-12
| | | | | -- MOS_MIGRATED_REVID=135805730
* Move interface so building to action configsGravatar Marcel Hlopko2016-10-12
| | | | | | | | | This cl moves the conditional building of interface libraries from LinkCommandLine to action configs and features. It provides link_dynamic_library.sh to keep blaze backwards compatible. The script and related code can be deleted once all crosstools are updated. RELNOTES: No. -- MOS_MIGRATED_REVID=135799041
* Only add the runfiles of artifacts that are actual inputs of the spawn action.Gravatar Florian Weikert2016-10-11
| | | | | | | The previous solution added too many unneeded runfiles, which caused problems with our workers. -- MOS_MIGRATED_REVID=135782773
* Adding support for Linux s390xGravatar namrata-ibm2016-10-11
| | | | | | | | | | | We have added support for Linux s390x platform in Bazel. Closes #1891. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1891 MOS_MIGRATED_REVID=135777047
* Propagate swift_library defines attribute to parents.Gravatar Dmitry Shevchenko2016-10-11
| | | | | | | * This mimics the behavior of cc_ and objc_ library rules. -- MOS_MIGRATED_REVID=135710506
* Add bin_dir and genfiles_dir to ctxGravatar Kristina Chodorow2016-10-11
| | | | | -- MOS_MIGRATED_REVID=135689610
* Move bazel apple tests into a separate package.Gravatar Dmitry Shevchenko2016-10-11
| | | | | -- MOS_MIGRATED_REVID=135686367
* Handles missing classes.jar in aar_import gracefully, by creating an empty ↵Gravatar Adam Michael2016-10-07
| | | | | | | jar file instead of crashing Bazel. -- MOS_MIGRATED_REVID=135405636
* Fix messed-up indentation in make_deb.pyGravatar Benjamin Staffin2016-10-07
| | | | | | | | | | | I'm not sure how this got all crazy the last time I touched this file! This restores the earlier sane line wrapping. Changes are purely whitespace. -- Change-Id: I6bc743de132be74b1be64c45fceba73315d06e72 Reviewed-on: https://bazel-review.googlesource.com/c/5750/ MOS_MIGRATED_REVID=135365348
* Remove HOST_CFG and DATA_CFG references that cause warningsGravatar Kristina Chodorow2016-10-07
| | | | | -- MOS_MIGRATED_REVID=135353307
* Add action_config and feature for linking on WindowsGravatar Yun Peng2016-10-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also implemented whole archive feature on Windows 1. Pulled action_configs and features from CppLinkActionConfigs.java 2. Deleted many features not working on Windows. (AFAIK) including: symbol_counts output_execpath_flags_executable global_whole_archive_open runtime_root_flags global_whole_archive_close force_pic_flags 3. Added c++-link-interface-dynamic-library action config Not sure there is such thing on Windows, but it's currently in MANDATORY_LINK_TARGET_TYPES 4. Added build variable "whole_archive_object_files_params" 5. Automatically detect if linker supports /WHOLEARCHIVE and use the corresponding build variable -- Change-Id: I232798a0eb1a3291f972b313a81e678b0121d58c Reviewed-on: https://bazel-review.googlesource.com/#/c/6414 MOS_MIGRATED_REVID=135342093
* Remove JavaCpuSupplier; use the actual --cpu value instead.Gravatar Ulf Adams2016-10-06
| | | | | | | | | | | | This is a semantic change for Bazel, which now observes the --cpu flag when looking up a Jvm. Use "-default" as a fallback to keep the change backwards compatible. RELNOTES[INC]: Bazel now uses the --cpu flag to look up Jvms; it falls back to "default" if it can't find a Jvm matching the CPU value. -- MOS_MIGRATED_REVID=135333759
* Validate swift_library namesGravatar Dmitry Shevchenko2016-10-06
| | | | | | | * This prevents a target from building if its name or any name in its dependencies is not a valid Swift module name. -- MOS_MIGRATED_REVID=135270299
* Roll forward of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-05
| | | | | | | | | | | | | | | | | | | | | | * Fixed breakage in shell tools with an old bazel binary. Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32. *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135238820
* Rollback of commit af8ebca2b88a0ee1129b72b4ce825f6489c31e67.Gravatar Damien Martin-Guillerez2016-10-05
| | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Break `bazel fetch ...` Discovered by bisecting `bazel fetch tensorflow/...`, see attached bug for more information Fixes https://github.com/bazelbuild/bazel/issues/1880 *** Original change description *** Open source dex merging tools for incremental dexing. Tested with bazel build --incremental_dexing_binary_types=monodex,multidex_unsharded,multidex_sharded -- //examples/android/java/bazel:hello_world -- MOS_MIGRATED_REVID=135220785
* Allow adaptresourcefilecontents for proguard configuration, and -s in the ↵Gravatar Googler2016-10-05
| | | | | | | directive value. -- MOS_MIGRATED_REVID=135162267
* Check "xcodebuild -version" first before building the xcode locator.Gravatar Chris Parsons2016-10-05
| | | | | | | This prevents a warning on machines which have no xcode versions installed. -- MOS_MIGRATED_REVID=135131956
* Rollback of commit deeeb31f8ba0f196fbc9ca2a177d59d57ea50b32.Gravatar Dmitry Shevchenko2016-10-04
| | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks builds with current blaze *** Original change description *** Add a way to select non-default Xcode toolchain * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135053864
* Add a way to select non-default Xcode toolchainGravatar Dmitry Shevchenko2016-10-04
| | | | | | | | | * Adds a flag --xcode_toolchain which sets TOOLCHAINS env variable for xcrun. * Updates swift_library to work with this flag when selecting Swift runtime location. * By default the flag has a null value and is not set in env. -- MOS_MIGRATED_REVID=135033093
* Add genfiles to include paths to allow full-path imports of generated protosGravatar Googler2016-10-04
| | | | | -- MOS_MIGRATED_REVID=134840789
* Remove dependency on $unzip for aar_import. Replaces the functionality with ↵Gravatar Adam Michael2016-10-04
| | | | | | | //third_party/ijar/zipper. -- MOS_MIGRATED_REVID=134827924
* Use ijar:zipper instead of zipinfo for zip_manifest_creator.sh.Gravatar Adam Michael2016-10-04
| | | | | | | Also, explicitly puts tools/zip:zipper and tools/zip:zip_manifest_creator.sh into BUILD.tools because they are only used from within @build_tools. -- MOS_MIGRATED_REVID=134824173
* Silence the warning about Javac not supporting workers during bootstrap by ↵Gravatar Philipp Wollermann2016-09-30
| | | | | | | renaming the action mnemonic in the Java Skylark rules to JavacBootstrap. -- MOS_MIGRATED_REVID=134776087
* Use minimum OS flags for watchOS and tvOS actions.Gravatar Chris Parsons2016-09-30
| | | | | | | | | | | | Also: - Move minimum os information into AppleConfiguration - Update watchos and tvos minimum version defaulting behavior such that, if unspecified in flags, the minimum OS is equal to the SDK version. - Expose Apple Platform to apple_common in skylark -- MOS_MIGRATED_REVID=134712763
* Open source dex merging tools for incremental dexing.Gravatar Adam Michael2016-09-30
| | | | | | | | Tested with bazel build --incremental_dexing_binary_types=monodex,multidex_unsharded,multidex_sharded -- //examples/android/java/bazel:hello_world -- MOS_MIGRATED_REVID=134690103
* Fix cc_configure on WindowsGravatar Yun Peng2016-09-29
| | | | | | | -- Change-Id: Id359bc6f442f302e3dbaa60cedd6536ecf4f92ec Reviewed-on: https://bazel-review.googlesource.com/#/c/6333 MOS_MIGRATED_REVID=134575379
* Make cc_configure on Windows more robustGravatar Yun Peng2016-09-28
| | | | | | | | | | | | | 1. Throw an error if Bash-on-Windows is found instead of MSYS bash 2. Introduce BAZEL_VS environment variable 3. Output more information Fix https://github.com/bazelbuild/bazel/issues/1847 -- Change-Id: Ic4571c6c792d9b81df4cd800b8f19d121cc44c33 Reviewed-on: https://bazel-review.googlesource.com/#/c/6330 MOS_MIGRATED_REVID=134531295
* patch bootclasspath to allow javac to compile lambdas and method references ↵Gravatar Googler2016-09-28
| | | | | | | in android_* targets (behind existing flag). -- MOS_MIGRATED_REVID=134453743
* In J2ObjC proto aspect, add a proto file blacklist to filter out unnecessary ↵Gravatar Rumou Duan2016-09-27
| | | | | | | protos from linking into the final binary. -- MOS_MIGRATED_REVID=134409481
* Some changes in MSVC toolchainGravatar Yun Peng2016-09-26
| | | | | | | | | These changes could help use build TensorFlow on Windows -- Change-Id: I98962add450da234d5965b091607817e991af383 Reviewed-on: https://bazel-review.googlesource.com/#/c/6270 MOS_MIGRATED_REVID=134266671
* Add bitcode handling to swift_libraryGravatar Dmitry Shevchenko2016-09-26
| | | | | -- MOS_MIGRATED_REVID=134110312
* Move hash computation from bash script to a python script because calling ↵Gravatar Googler2016-09-26
| | | | | | | md5 repeatedly from bash is too slow. -- MOS_MIGRATED_REVID=134087524
* Change the filegroup for the android sdk to an alias to unbreak android in ↵Gravatar Alex Humesky2016-09-23
| | | | | | | bazel after commit 1092e9d68773adb7444cc85a47af650aeeaf65fc -- MOS_MIGRATED_REVID=134036851
* Implementation of maven_jar rule in Skylark.Gravatar Jingwen Chen2016-09-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | **Experimental** This is an initial implementation of the maven_jar rule in Skylark, targeted at the FRs in issue #1410. Implemented a wrapper around the maven binary to pull dependencies from remote repositories into a directory under {output_base}/external. Attributes `name`, `artifact`, `repository`, `sha1` have been implemented, but not `server`. Caveat: this rule assumes that the Maven dependency is installed in the system. Hence, the maven_skylark_test integration tests are tagged with "manual" and commented out because the Bazel CI isn't configured with the Maven binary yet. Added a serve_not_found helper for 404 response tests. Usage: ``` load("@bazel_tools//tools/build_defs/repo:maven_rules.bzl", "maven_jar") maven_jar( name = "com_google_guava_guava", artifact = "com.google.guava:guava:18.0", sha1 = "cce0823396aa693798f8882e64213b1772032b09", repository = "http://uk.maven.org/maven2", ) ``` With regards to server, there are some limitations with retrieving a maven_server's attribute at Loading Phase without the use of hacky macros (issue #1704), and even if macros are used, the maven_server is not treated as an actual dependency by maven_jar. There is a test (`test_unimplemented_server_attr`) to ensure that the error message to shown to users if they use the server attribute with this rule. -- Change-Id: I167f9d13835c30be971928b4cc60167a8e396893 Reviewed-on: https://bazel-review.googlesource.com/c/5770 MOS_MIGRATED_REVID=133971809
* Cleanup swift_library after Blaze release.Gravatar Dmitry Shevchenko2016-09-22
| | | | | | | * Removes iOS specific platform/cpu calls in favor of platform-agnostic counterparts. -- MOS_MIGRATED_REVID=133966024
* Add test for //tools/zip/zip_manifest_creatorGravatar Adam Michael2016-09-22
| | | | | -- MOS_MIGRATED_REVID=133847278
* Add copts attribute to swift_library.Gravatar Dmitry Shevchenko2016-09-21
| | | | | -- MOS_MIGRATED_REVID=133752908
* In local_xcode_config rule, when xcode-locator-bin fails (generally due to ↵Gravatar Chris Parsons2016-09-21
| | | | | | | xcode not being installed), create a stub xcode_version target instead of a malformed one. -- MOS_MIGRATED_REVID=133709696
* Description redacted.Gravatar Laurent Le Brun2016-09-21
| | | | | -- MOS_MIGRATED_REVID=133693782