aboutsummaryrefslogtreecommitdiffhomepage
path: root/compile.sh
Commit message (Collapse)AuthorAge
* Make the embedded JDK targets the defaultGravatar Liam Miller-Cushon2018-06-18
| | | | | | Closes #5403. PiperOrigin-RevId: 201007405
* Update the distfile compile scripts to create a valid embedded toolsGravatar John Cater2018-03-19
| | | | | | | | | repository. Closes #4860. Change-Id: I1689fee013d031253d5e55343be174aaa6e638c1 PiperOrigin-RevId: 189588855
* Windows,bootstrapping: respect TMPDIRGravatar Laszlo Csomor2018-01-30
| | | | | | | | | | | | | | | | Respect the user-defined TMPDIR, or use TMP or TEMP on Windows. Since MSYS sets TMP and TEMP to "/tmp" which is actually "<msysroot>/tmp" (e.g. "c:\tools\msys64\tmp"), it is shorter than the Windows-default TEMP directory. This buys us a bit of headroom to not hit path length limits while bootstrapping. Fixes https://github.com/bazelbuild/bazel/issues/4536 Change-Id: I2ab04e3c1c96bc306ef54348cc0c0c2f3fda13ee PiperOrigin-RevId: 183826475
* bootstrap: fix typo in PATH-fixing command adviceGravatar L?szl? Csomor2017-12-06
| | | | | Change-Id: I4ea57252dfa2fe0d1386206ee2136beb9d61f7b0 PiperOrigin-RevId: 178092027
* Update version of re2Gravatar laurentlb2017-12-06
| | | | | | | | | The latest version of re2 contains fixes that makes it compatible with new changes in Bazel. Fixes #4233 RELNOTES: None. PiperOrigin-RevId: 178087275
* bootstrap: fix typo in PATH fixing command adviceGravatar László Csomor2017-12-06
| | | | Change-Id: I4ea57252dfa2fe0d1386206ee2136beb9d61f7b0
* Platform options are no longer experimental.Gravatar jcater2017-12-04
| | | | | RELNOTES: The --host_platform and --platform flags are no longer experimental. PiperOrigin-RevId: 177863761
* Windows,bootstrapping: fix build_windows_jni.shGravatar Laszlo Csomor2017-10-06
| | | | | | | | | | | | | | Also: - check as the first thing in compile.sh that we can locate the GNU coreutils, and remove the duplicate check for the same thing on Windows - check early in compile.sh that we can access python.exe Fixes https://github.com/bazelbuild/bazel/issues/3863 Change-Id: Ib48b405cf93eafd48e21b280bcbab4d45117c1d9 PiperOrigin-RevId: 171291435
* Add a new toolchain type for c++. In order to do this, ↵Gravatar cpeyser2017-09-08
| | | | | | | | PlatformConfiguration is made a legal configuration fragment for every rule class. Add a default "dummy" c++ toolchain to prevent resolution errors when legacy toolchain selection logic is used. Add toolchain mocks to java and shell tests. PiperOrigin-RevId: 167901210
* Removes all test parts of compile.shGravatar dmarting2017-08-29
| | | | | | | | So compile.sh is dedicated to bootstrapping Bazel. It has been a long time we are not testing those code path anymore and providing a bazel binary on the command line was regularly broken PiperOrigin-RevId: 166827487
* Replace which by bash-builtin hashGravatar Klaus Aehlig2017-08-28
| | | | | | | | | | | | Reportedly, which is not installed by default on all non-windows systems bazel is used. As we only use which to test if a program can be found on PATH, use the bash builtin hash command. While there - replace the search for [ by a search for tr, a program we care more, as [ is the builtin test anyway, - fix a typo in the name of the GNU tools collection searched for. Change-Id: Id78737eba10e96c6fa41ca68a47102ab28e6031f PiperOrigin-RevId: 166685117
* Add a Bazel test testing determinism of `bazel build //src:bazel`Gravatar Damien Martin-Guillerez2017-08-23
| | | | | | | | | - Test if hash(bazel1) == hash(bazel2) This ensure that the build of bazel is a fixed point. Change-Id: I422dfc7ec5b95aa054a2677e59427cbd8cd4ef01 PiperOrigin-RevId: 166180529
* compile.sh srcs: do not hide error messagesGravatar aehlig2017-07-31
| | | | | | ...as they are actually useful when debugging. PiperOrigin-RevId: 163698478
* Build MSVC Bazel when using compile.shGravatar pcloudy2017-07-24
| | | | | RELNOTES: PiperOrigin-RevId: 162914414
* Minor Bash improvementsGravatar Androbin2017-06-27
| | | | | | | | | | | | | | | | | Based on output of static analysis tool. https://github.com/koalaman/shellcheck/wiki/SC2166 https://github.com/koalaman/shellcheck/wiki/SC2207 https://github.com/koalaman/shellcheck/wiki/SC2145 https://github.com/koalaman/shellcheck/wiki/SC2001 https://github.com/koalaman/shellcheck/wiki/SC2129 https://github.com/koalaman/shellcheck/wiki/SC2128 https://github.com/koalaman/shellcheck/wiki/SC2004 https://github.com/koalaman/shellcheck/wiki/SC2048 Closes #3162. PiperOrigin-RevId: 160261247
* Remove compile.sh srcs exception after successfull protobuf update.Gravatar buchgr2017-05-03
| | | | | RELNOTES: None. PiperOrigin-RevId: 154836224
* Update protobuf dependency to 3.2.0Gravatar Jakob Buchgraber2017-05-02
| | | | | Change-Id: I32f6b16955ecefc242af8d9261418452d698c9ff PiperOrigin-RevId: 154812955
* Windows, bootstrapping: fix bugs to support CygwinGravatar Laszlo Csomor2017-04-26
| | | | | | | | | | | | | | | | | | | | | | | | | | We can't yet fully bootstrap Bazel on Cygwin, but can build Bazel from scratch. Building Bazel with Bazel fails because gcc isn't found where it's believed to be -- /usr/bin is a mount in Cygwin (to /bin), not a symlink or directory. In this change I: - added support for the Cygwin shell as a bootstrap platform (recognize `uname`) - updateed the bootstrap scripts to use "windows" as the PLATFORM string, not "mingw" - fixed the git lookup code - removed some hardwired msys-style path - added a cygpath call to convert $PWD to a mixed-style (otherwise the bootstrap script passes --client_cwd=/cygdrive/c/... to the server and WindowsFileSystem.java wants to make that relative to c:/cygwin64) See https://github.com/bazelbuild/bazel/issues/2885 Change-Id: Icc71261ea4f0c6d4a9c0846551a7977ca6020331 PiperOrigin-RevId: 154273014
* Simplify the steps needed to run android_integration_test.Gravatar Adam Michael2017-03-24
| | | | | | | | | | | | As of Bazel 0.4.5, the android_sdk_for_test and android_ndk_for_test are bound in android.WORKSPACE, so we do not need to include them in the main Bazel WORKSPACE file. I've update the comments to reflect that all that is needed to run the tests is android_sdk_repository and android_ndk_repository and the environment variables that they read. Also, delete scripts/workspace_user.sh. All of its functionality (reading environment variables, detecting api levels, build tools versions) is now part of android_{s,n}dk_repository. Fixes https://github.com/bazelbuild/bazel/issues/2284. -- PiperOrigin-RevId: 151032551 MOS_MIGRATED_REVID=151032551
* Make Bazel build with MSVC-default-toolchain Bazel Gravatar Yun Peng2017-03-08
| | | | | | | | | | | | | After this change, a msys bazel can be built with a MSVC-default Bazel by adding --cpu=x64_windows_msys --host=x64_windows_msys See https://github.com/bazelbuild/bazel/issues/2627 -- Change-Id: Iaa82bf4dd911c5740b98d3b2739dfccca6203f79 Reviewed-on: https://cr.bazel.build/9293 PiperOrigin-RevId: 149532274 MOS_MIGRATED_REVID=149532274
* Bazel bootstrapping: make it work on Windows againGravatar Laszlo Csomor2017-01-31
| | | | | | | | | | | | | | | | | | | | | In this change: (1) add a sanity check to verify that GNU bintools are on the PATH (2) correct the PATH on Windows if (1) failed (3) use "<user>/My Documents/Temp" as the default temp directory instead of "%windir%/Temp", because the latter is non-writable Motivated by: https://github.com/bazelbuild/bazel/issues/2431 https://github.com/bazelbuild/bazel/issues/2449 -- PiperOrigin-RevId: 146006796 MOS_MIGRATED_REVID=146006796
* Always pass -e; some versions of sed give an error message otherwise.Gravatar Ulf Adams2016-12-06
| | | | | | | | | | | Maybe fixes #1552. Closes #2175. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/2175 PiperOrigin-RevId: 141060731 MOS_MIGRATED_REVID=141060731
* In the //:srcs completeness test, ignore derivedGravatar Klaus Aehlig2016-11-14
| | | | | | | | | | | | | | The compile.sh script contains a test verifying that all sources of Bazel are contained in the //:srcs target. As reference, the list of files reachable from the top-level directory is taken. In this check, ignore all derived sources, i.e., the content of the derived subdirectory to make this test pass as well when executed from the distribution artifact. -- Change-Id: I590bc9f424ed5b9f87ed07166ecb75b5aeac9fb3 Reviewed-on: https://bazel-review.googlesource.com/#/c/7136 MOS_MIGRATED_REVID=138884271
* Bootstrapping: don't use convenience symlinksGravatar Laszlo Csomor2016-09-27
| | | | | | | | | | | | | | | | | | | | | | When `compile.sh` builds bazel using bazel, it copies the resulting binary to `output/bazel`. However sometimes the convenience symlink `bazel-bin` is not created, probably because an old one is still around and cannot be deleted. That is clearly a bug, but to work around it, the bootstrap builder shouldn't attempt to rely on the creation of these symlinks in the first place. This change updates compile.sh to use `bazel info` to locate the `bazel-bin` directory's real path, and attempt to copy the bazel binary from there. This works around https://github.com/bazelbuild/bazel/issues/1827 -- MOS_MIGRATED_REVID=134398451
* Rollback of commit 900202fe4418490abca96afd7ebf2b92268be244.Gravatar Damien Martin-Guillerez2016-09-07
| | | | | | | | | *** Reason for rollback *** Rollback, broke Bazel bootstrap on OS X. -- MOS_MIGRATED_REVID=132422954
* Change default apple toolchain from darwin_x86_64 to ios_x86_64.Gravatar Cal Peyser2016-09-07
| | | | | | | | | This means that in the absence of "--config=" (or the "--cpu=" and "--ios_cpu=" flags that it indicates), c++ code using //tools/osx/crosstool will default to being built for ios_x86_64 instead of darwin_x86_64. This is necessary to ensure that once the crosstool is used for objc, the default behavior of objc_library building for ios_x86_64 will be maintained. -- MOS_MIGRATED_REVID=132326009
* Make bootstrapping support a designated work dirGravatar Klaus Aehlig2016-07-11
| | | | | | | | | | | | | Change the bootstrapping process so that setting the BAZEL_WRKDIR environment variable will tell the bootstrap process to mostly write to that directory---apart from adding the symlinks next to the WORKSPACE file. So setting this variable will avoid the usual writes to random places in the file system (like /tmp and the user's home directory). -- Change-Id: I9d1af747e75cc2a7bb1af08308acc9dfd927e920 Reviewed-on: https://bazel-review.googlesource.com/#/c/3963 MOS_MIGRATED_REVID=127075535
* Adds missing dependencies to //:srcsGravatar Damien Martin-Guillerez2016-07-04
| | | | | -- MOS_MIGRATED_REVID=126571069
* Add all the sources to //:srcs filegroup and add a check to detectGravatar Damien Martin-Guillerez2016-07-01
| | | | | | | | | | | missing file to it. We need to activate this check on presubmits -- Change-Id: Ia95e92d3816ce92bb69bc0e2cf56e9c60b68d970 Reviewed-on: https://bazel-review.googlesource.com/#/c/3949/ MOS_MIGRATED_REVID=126404792
* Refactor JDK 7 build to use the vendored version of itGravatar Damien Martin-Guillerez2016-04-20
| | | | | | | | | | | | | Along the path, fix the build for JDK 7 and get rid of most ugliness in the JDK 7 build. Now simply setting JAVA_VERSION to 1.7 will build a JDK 7 compatible version. Fixes #1159. -- Change-Id: I9599283844a57d9e053f12d37445907f22a9232e Reviewed-on: https://bazel-review.googlesource.com/#/c/3452 MOS_MIGRATED_REVID=120332747
* Rollback of commit 6cb8d820689ad029a9d0dc4ee1100db9b2d96515.Gravatar Damien Martin-Guillerez2016-04-14
| | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks ci.bazel.io While the basics for fixing the build is easy (just a few typos in packages building), fixing the test is a bit more tricky. I see only one solution for fixing the test: use a select statement that would select the good bazel version but that would always pull JavaBuilder as an external dependency when we do test. Better roll this back then check the JavaBuilder 0.1.0 as a binary in third_party before rolling forward (a similar change is still needed to decouple running the test and building the binary for JDK 7) *** Original change description *** Refactor build for JDK 7 Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- MOS_MIGRATED_REVID=119773123
* Refactor build for JDK 7Gravatar Damien Martin-Guillerez2016-04-13
| | | | | | | | | | | Now the JDK 7 tuning happens all in Bazel, removing logic from the CI script. It uses remote repositories to access JDK 7 dependencies. -- Change-Id: Iff590c6642ca5b2343aa15096f8fd837d1c80787 Reviewed-on: https://bazel-review.googlesource.com/#/c/3327 MOS_MIGRATED_REVID=119634530
* Add the last Bazel version number to ./compile.shGravatar Damien Martin-Guillerez2016-03-14
| | | | | | | | | | | All Bazel should now contain the latest version with a date modifier to ensure we can track all Bazel builds out there. It is especially important for #1014. -- Change-Id: I8d17d9e1660b104c2b8623d5a8a06d010d044ea7 Reviewed-on: https://bazel-review.googlesource.com/3070 MOS_MIGRATED_REVID=117120584
* Allow outputting the progress of Bazel's build.Gravatar Julio Merino2016-02-26
| | | | | | | | | | | | Rename run_silent to run and add a global VERBOSE variable that tunes whether the run function prints its output or not. This is for better debugging possibilities of Bazel's self-build, though compile.sh remains silent as before and only displays the command's output in case of an error. -- MOS_MIGRATED_REVID=115599355
* Remove scala rules from the Bazel source treeGravatar Damien Martin-Guillerez2016-02-24
| | | | | | | | | They have now moved to https://github.com/bazelbuild/scala_rules RELNOTES[INC]: Scala rules were deleted from the @bazel_tools repository, see https://github.com/bazelbuild/rules_scala#scala-rules-for-bazel -- MOS_MIGRATED_REVID=115432354
* On Windows, build ``bazel.exe`` instead of just ``bazel``.Gravatar Dmitry Lomov2016-02-16
| | | | | | | Needed for #276. -- MOS_MIGRATED_REVID=114693711
* Add scala tests to CIGravatar Oscar Boykin2016-02-15
| | | | | | | -- Change-Id: If286a9718e036d2bd555baf78600e9208ba5a990 Reviewed-on: https://github.com/bazelbuild/bazel/pull/872 MOS_MIGRATED_REVID=114563576
* Make sure $BAZEL is set when `./compile.sh test` is runGravatar Kristina Chodorow2016-02-02
| | | | | | | Fixes #832. -- MOS_MIGRATED_REVID=113537330
* Use label syntax that is immune to MSYS path mangling in bootstrap scripts.Gravatar Dmitry Lomov2016-01-29
| | | | | | | | | | | On Windows, MSYS will mangle all arguments that resemble Unix paths when executing (exec*()) non-msys executables (in an attempt to convert them to Windows paths). This affects ``//src:bazel`` (it becomes ``/src:bazel``) but not ``src:bazel``. This CL converts to the latter in bootstrapping shell scripts to work around this issue. -- MOS_MIGRATED_REVID=113349821
* Rollback of commit 14cf67863d56bab1eef11687a881adf323ba55ad.Gravatar Kristina Chodorow2016-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Issue that caused the rollback (#819) is resolved *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Prerequisite for rolling back j2objc base workspace change *** Original change description *** Remove base_workspace from bazel setup I also removed a couple places the documentation referred to it incorrectly. There are still a couple of blog posts that mention it, but that seemed okay. RELNOTES: A bazelrc with --package_path set is no longer required for Bazel to find its tools. This also means that building //...... -- MOS_MIGRATED_REVID=113259357
* Rollback of commit e87849b8d391af8f5d98e3a91e680e88a1264b64.Gravatar Kristina Chodorow2016-01-28
| | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Prerequisite for rolling back j2objc base workspace change *** Original change description *** Remove base_workspace from bazel setup I also removed a couple places the documentation referred to it incorrectly. There are still a couple of blog posts that mention it, but that seemed okay. RELNOTES: A bazelrc with --package_path set is no longer required for Bazel to find its tools. This also means that building //... should work to build everything in the workspace without including Bazel's own targets. -- MOS_MIGRATED_REVID=113164089
* Remove base_workspace from bazel setupGravatar Kristina Chodorow2016-01-21
| | | | | | | | | | | | I also removed a couple places the documentation referred to it incorrectly. There are still a couple of blog posts that mention it, but that seemed okay. RELNOTES: A bazelrc with --package_path set is no longer required for Bazel to find its tools. This also means that building //... should work to build everything in the workspace without including Bazel's own targets. -- MOS_MIGRATED_REVID=112604261
* Use --nolegacy_bazel_java_test when launching test.Gravatar Damien Martin-Guillerez2016-01-19
| | | | | | | This will create a non-dummy XML file for all our java_test. -- MOS_MIGRATED_REVID=112449480
* Use only the Bazel server for bootstrappingGravatar Damien Martin-Guillerez2016-01-18
| | | | | | | This remove all C++ compilation in bootstrapping itself. -- MOS_MIGRATED_REVID=112407516
* Use JavaIoFileSystem during the bootstrapping, removing JNI compilation.Gravatar Damien Martin-Guillerez2016-01-18
| | | | | | | Another step towards no C++ compilation outside of Bazel for bootstrapping. -- MOS_MIGRATED_REVID=112399835
* Inline bazel_bootstrap in compile.shGravatar Damien Martin-Guillerez2016-01-18
| | | | | | | This method is used only once now so inline. -- MOS_MIGRATED_REVID=112396086
* Remove remaining toolsGravatar Damien Martin-Guillerez2016-01-11
| | | | | | | tools command was removed from compile.sh -- MOS_MIGRATED_REVID=111848422
* Rollback of commit ac6ed79e1a3fa6b0ca91657b28e2a35f7e49758c.Gravatar Damien Martin-Guillerez2016-01-11
| | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Roll-forward with fix *** Original change description *** Automated [] rollback of []. *** Reason for rollback *** Broke tests on Mac: https://google.com/url?sa=D&q=http%3A%2F%2Fci.bazel.io%2Fjob%2FBazel%2FJAVA_VERSION%3D1.8%2CPLATFORM_NAME%3Ddarwin-x86_64%2F269%2Fconsole *** Original change description *** Speed-up bootstrap on OS X by removing tool compilation. -- MOS_MIGRATED_REVID=111833617
* Rollback of commit b9f401b97590cb95e76efb0ba8bf5319cfe93108.Gravatar Dmitry Lomov2015-12-22
| | | | | | | | | | | | | *** Reason for rollback *** Broke tests on Mac: https://google.com/url?sa=D&q=http%3A%2F%2Fci.bazel.io%2Fjob%2FBazel%2FJAVA_VERSION%3D1.8%2CPLATFORM_NAME%3Ddarwin-x86_64%2F269%2Fconsole *** Original change description *** Speed-up bootstrap on OS X by removing tool compilation. -- MOS_MIGRATED_REVID=110785493
* Speed-up bootstrap on OS X by removing tool compilation.Gravatar Damien Martin-Guillerez2015-12-21
| | | | | -- MOS_MIGRATED_REVID=110704529