2
0
mirror of https://github.com/boostorg/build.git synced 2026-01-19 16:12:14 +00:00

16 Commits

Author SHA1 Message Date
Nikita Kniazev
56d0293f1c Fix build.bat/bootstrap.bat exit code (#371)
1. cmd.exe quirk 1: `exit /b 1` sets error code `0` for **the process**, even though it sets `errorlevel` to `1`.
2. `bootstrap.bat` needs to check that `build.bat` succeded (cmd.exe quirk 2: `echo off` doesn't change `errorlevel`).
3. `build.bat` overrides exit code with call to `dir *.exe`.
4. `setlocal` will rollback `pushd` on exit (that also helps with Ctrl+C).
2024-04-21 08:21:51 -05:00
Rene Rivera
89a7ac58db Add checks for C++11 with informative error.
This adds a check_cxx11.cpp source that is checked for compile with the
chosen toolset before actually building. This include an appropriate
user error. To see such errors, we also nolonger output to
bootstrap.log. Instead the bootstrap outputs to cerr and sets the
error code.
2020-02-13 07:30:17 -06:00
Rene Rivera
1dee2dc495 Back to bootstrap.log, as some users depend on that name. 2020-02-12 09:35:52 -06:00
Rene Rivera
f665f0501b Simplyfied bootstrap scripts to match each other.
The goal here is to avoid extra complexity of just building. If someone
needs more control they can use the src/engine/build scripts.
2020-02-10 17:45:50 -06:00
Rene Rivera
cc51c68c9e SImplify bootstrap scripts. 2019-04-02 08:32:39 -05:00
luzpaz
a2b8731d2a build: misc.typos (#341)
* build: misc.typos

Found via `codespell -q 3 --skip="./src/engine/boehm_gc" -L te,iff`

* Revert 3rdParty code changes
2018-09-26 09:54:06 -07:00
Jurko
f929602088 Return valid exit code from Windows batch scripts.
Technique used for setting Windows batch script exit codes in Boost.Build worked
correctly when the script is called from a Windows shell process and then checked
from inside that process. However, when run from a temporary shell process that
needs to terminate after running the script, such a process would always return
exit code 0.

This prevented anyone automating those scripts from detecting their success/
failure status by using their exit code without adding an additional batch script
layer.

For example, consider the following two script files:

  ret666.cmd:
    exit /b 666

  wrapper.cmd:
    call ret666.cmd

They both 'should return the value 666' and when run directly from a cmd.exe
console indeed both do (they set the shell process's ERRORLEVEL environment
variable to 666). However, when run like this:
  cmd /c <script-name>
running ret666.cmd causes the temporary cmd.exe process to exit with exit code
666, while running wrapper.cmd causes it to exit with exit code 0.
2014-10-24 11:03:15 +04:00
Vladimir Prus
4edcb7f2e6 Fix location of bootstrap log on Windows.
Thanks to Chris Nogradi for the report.
2013-12-27 08:41:58 +04:00
Vladimir Prus
d3015e3ea4 Update relative paths. 2013-12-18 10:49:04 +04:00
Steven Watanabe
e8d4518470 Write bootstrap.log to the correct location.
[SVN r77600]
2012-03-28 02:53:14 +00:00
Vladimir Prus
44e3707e71 Install both "b2" and "bjam".
[SVN r70624]
2011-03-27 11:28:55 +00:00
Steven Watanabe
3edd545016 Fix bootstrap.bat.
[SVN r68818]
2011-02-12 22:28:37 +00:00
Vladimir Prus
7df1f2f4af Kill 'engine/src', moving all content to 'engine'.
[SVN r68592]
2011-02-01 08:16:47 +00:00
Vladimir Prus
65dfa39707 Pass arguments to bootstrap.bat over to jam's build.bat.
[SVN r64998]
2010-08-25 15:48:36 +00:00
Vladimir Prus
a65a3d6d04 Fix paths
[SVN r64176]
2010-07-19 20:47:06 +00:00
Vladimir Prus
474b15c60a Implement 'bootstrap' + 'bjam install' installation for Boost.Build.
[SVN r64166]
2010-07-19 19:48:27 +00:00