2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 00:52:16 +00:00
Commit Graph

1213 Commits

Author SHA1 Message Date
Rene Rivera
0ec79867fd Fix more references to C vs C++ compilers. 2019-03-30 08:13:47 -05:00
Rene Rivera
f40329cc44 Add note about CXX & CXXFLAGS. 2019-03-29 07:55:07 -05:00
Rene Rivera
5d49abc1f2 More toolsets to c++ compiling and clean up. 2019-03-28 21:40:20 -05:00
Rene Rivera
d10585c9f9 More cxx toolsets on build.sh. 2019-03-27 22:45:05 -05:00
Rene Rivera
c413c6a789 Convert more toolsets to c++. 2019-03-27 08:14:03 -05:00
Rene Rivera
81f9ba9722 Giving up on LTO. Too hard to get working on CI.
[skip appveyor]
2019-03-26 15:19:31 -05:00
Rene Rivera
d108ee5211 Tweak intel compilers to build as c++.
Another try and clang3 compilers in Travis.
2019-03-26 12:00:03 -05:00
Rene Rivera
361f0e99ef Debug travis clang3 builds.
[skip appveyor]
2019-03-26 07:28:59 -05:00
Rene Rivera
c7c1d19e61 Fix popen redef error and remove old mingw as it doesn't have popen. 2019-03-25 23:18:13 -05:00
Rene Rivera
e50286fe49 Fix mingw using posix instead of windows api for popen. 2019-03-25 22:16:37 -05:00
Rene Rivera
053afa5e05 Tweak path extract syntax to work with mingw.
[skip travis]
2019-03-22 21:22:26 -05:00
Rene Rivera
0ce41b8bd6 Some debugging of FOR.
[skip travis]
2019-03-22 20:12:51 -05:00
Rene Rivera
f5587c1f91 Undo command extensions, as it just fails.
[skip travis]
2019-03-22 09:27:30 -05:00
Rene Rivera
9e499e300a Maybe cmd extensions are disabled? 2019-03-22 08:06:22 -05:00
Rene Rivera
505c8eacfd Try and fix dirname logic for mingw CXX.
[skip travis]
2019-03-21 21:52:42 -05:00
Rene Rivera
0d993b8d1b Fix bad var name in for loop.
[skip travis]
2019-03-21 21:02:08 -05:00
Rene Rivera
b03828cc3c Fix mingw by the silly addition to PATH.
[skip travis]
2019-03-21 21:00:30 -05:00
Rene Rivera
20f7efd042 Fix incorrect vc142 label.
[skip travis]
2019-03-21 19:16:33 -05:00
Rene Rivera
8c0faa3796 Attempt to fix vc2019 build. 2019-03-21 19:11:01 -05:00
Rene Rivera
3eceb036ef Internalize build options into config header. 2019-03-21 09:53:02 -05:00
Rene Rivera
5ee7ebcf16 Merge origin/develop 2019-03-20 19:38:36 -05:00
Rene Rivera
eb8da52df3 Remove special darwin toolset for engine build. 2019-03-20 19:23:12 -05:00
Rene Rivera
571b3ee50a Merge branch 'feature/cxx' of https://github.com/boostorg/build into feature/cxx 2019-03-20 19:20:41 -05:00
jehelset
1cf0b2031a Read options before commit (#408)
* src/engine/jam.c
 ( main ): Read KEEP_GOING and PARALLELISM before calls to parse-file, so they are respected also here.
2019-03-17 23:11:14 -05:00
Nikita Kniazev
64d292d7a0 win: Increase communication buffers size (#412)
Currently the size of reading buffer is 16KiB while the the pipe buffer is of
system default size which seems to be 8KiB on Win7. Because of this the half of
the reading buffer is never used.

Also, recent Windows updates with Meltdown mitigation made syscalls more
expensive, and increasing the buffer size will lower the syscalls count.
2019-03-17 14:10:40 -05:00
Tom Kent
de026bc61e Clear the error instead of not setting it.
Rearranged order for newest first.
2019-03-05 16:23:53 -06:00
Tom Kent
1691e6194c If the vswhere lookup fails, keep searching for others 2019-03-05 06:53:19 -06:00
Thomas Kent
0a93cc2b97 Added support for actually building with msvc-14.2 2019-03-01 16:06:03 -06:00
Tom Kent
bee2ef619b Future one is "UNK" 2019-03-01 16:04:01 -06:00
Thomas Kent
b655b3f1c2 Fixes vswhere lookup during bootstrap for 16.X and 17.X 2019-03-01 07:05:03 -06:00
Tanzinul Islam
ccb9a97efb Fix build with Embarcadero C++ Builder ("borland" toolset) (#398)
* Fix "bootstrap.bat borland" failing to find label "Test_Path"

If an override toolset is given in the `bootstrap.bat` command-line,
`bootstrap.bat` -> `src/engine/build.bat` bypasses loading
`src/engine/guess_toolset.bat` entirely. Later on the call to
`Test_Path` from `build.bat` -> `config_toolset.bat` fails to find that
label.

Fix this by making a new parameterized entry-point `test_path` inside
`guess_toolset.bat` for this caller in `config_toolset.bat`.

Fixes: #382.

* Handle spaces in C++Builder toolchain path

Nowadays a default installation goes into %PROGRAMFILES%, e.g.
"C:\Program Files (x86)\Embarcadero\Studio\20.0\Bin".

* Add "-Nd" before "/D"-options for bcc32.exe

The preprocessor of the old Borland/C++Builder compiler (bcc32.exe) by
default does not accept preprocessor statements of the form:

    #if SYMBOL_NAME

where `SYMBOL_NAME` was `#define`-ed without a value. It insists on the
`#if defined(SYMBOL_NAME)` or `#ifdef SYMBOL_NAME` forms (emitting error
E2188 "expression syntax"). The workaround is to specify the `-Nd`
option before the offending `/D` options, which effectively provides a
value of "1" to the symbols being #define-ed. Apply this workaround in
the recipes of `bjam` and `b2` to satisfy the preprocessor.

The alternative here would be to migrate to the Clang-based (and much
more standard-compliant) bcc32c.exe, but that would be a more involved
change.

* Separate :Guess_Yacc logic from :Guess_Toolset in build.bat

This was an existing benign issue introduced in 00c2358, but it became
apparent after 9339693.
2019-02-26 19:32:53 -06:00
David Michael
4746def4a2 Implement a pseudo-toolset for cross-compiling (#196)
When running build.sh with the cross-cc toolset, it uses the native
compiler settings found in the BUILD_CC, BUILD_CFLAGS, and
BUILD_LDFLAGS environment variables to create executables to run on
the build system.  It then sets the toolset to cc so that the
cross-compilers given as CC etc. are propagated to subprocesses.
This ensures both that the build system can build and execute its
required programs and that final executables are cross-compiled for
the target architecture.
2019-02-23 09:36:23 -06:00
Steven Watanabe
acdf27398b Remove premature optimization that breaks piecemeal on windows.
The bug happens because exec_check replaces the shell inside
the command structure, but make1cmds retains a reference to
the old shell. The bug appears when all of the following are true:
- The action is piecemeal
- b2 is running on Windows
- SHELL is %
- The action contains elements that require a shell
- The action is split into multiple commands
In particular, this applies for gcc.archive with a large
number of object files.

Instead of attempting to reuse the same shell, we make
a new copy in every iteration of the loop.  The shell
and target lists are usually short and the cost of copying
them is insignificant compared to the other work done by the loop.
In addition, the optimization is rarely triggered because
piecemeal actions that require splitting are relatively rare.
2019-02-15 11:55:59 -07:00
Rene Rivera
b1954e3205 Reduce the repitition of the bjam version number. 2018-11-20 14:01:04 -06:00
Rene Rivera
4f8e074e29 Merge branch 'develop' into feature/cxx 2018-11-19 18:19:05 -06:00
James E. King III
158a8b6d5e Fix typo in cleanup code (#372) 2018-11-19 12:44:50 -06:00
Rene Rivera
f8f885f8cd Add debug output for script calls.
[skip travis]
2018-11-18 20:37:39 -06:00
Rene Rivera
92c1df8aab List only the exe's we care about for debugging CI.
[skip travis]
2018-11-18 20:19:38 -06:00
Rene Rivera
641b56f890 Allow customizing the compiler even for detected ones.
This allows using multiple cofigurations and alternate installs.
[skip travis]
2018-11-18 17:29:20 -06:00
Rene Rivera
765c09508b Merge branch 'develop' into feature/cxx 2018-11-18 15:42:47 -06:00
James E. King III
66938a9470 add clang to the list of supported toolsets for bootstrap.sh (#369) 2018-11-18 14:46:18 -06:00
James E. King III
a8447917be gcc compiler warnings identified unhandled error cases (#370)
error on fork had no output and did not end correctly
2018-11-18 14:08:39 -06:00
Rene Rivera
a1132974f3 See if we need a path to make -o option work.
[skip travis]
2018-11-15 23:09:20 -06:00
Rene Rivera
7cc4865033 Delete accidental binary file. 2018-11-15 22:42:24 -06:00
Rene Rivera
8a61df32a9 Debug info.
[skip travis]
2018-11-15 22:23:49 -06:00
Rene Rivera
a43f819176 Fix inverted CXX env test.
[skip travis]
2018-11-15 21:37:20 -06:00
Rene Rivera
a699fd9dc5 Add CXX for mingw building.
[skip travis]
2018-11-15 21:29:38 -06:00
Rene Rivera
8b0ad6661d Use copy instead of xcopy.
[skip travis]
2018-11-15 16:39:17 -06:00
Rene Rivera
402feedd7f Add b1->bjam copy.
[skip travis]
2018-11-15 16:12:48 -06:00
Rene Rivera
ef6a69b24b Tweaks to test install process. 2018-11-15 11:24:57 -06:00