2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00
Commit Graph

12237 Commits

Author SHA1 Message Date
Nikita Kniazev
d9efdb9fe2 Updated scarce :chars documentation with :BS example (#607)
Also, some clarification to `:B` and `:S` expansions.
2020-05-15 17:43:13 -05:00
Rene Rivera
c2137c3503 Allow wildcard matching for arg_file type args. 2020-05-14 20:24:55 -05:00
Peter Dimov
69c242dca1 Add missing assembler options to clang-win.jam, to enable Context to build (#602) 2020-05-12 07:32:31 -05:00
Nikita Kniazev
a11b1c104f Fix timestamp_delta_seconds (#603)
* The multiplier 1000000 is wrong
* Return seconds as function name and description says
* Use `difftime` instead of assuming `time_t` is in seconds
2020-05-12 07:31:33 -05:00
Nikita Kniazev
fecf350ce8 Remove leftover manifest generation early exiting (#599)
* Remove leftover manifest generation early exiting

It should have been removed in dd3dbcc9b6

* Remove unneeded manifest existence check

The commit it was added in d8e98e3abc says it is
fixing the problem that MSVC 8.0 does not produce a manifest file for static
libraries, but the code it touches is for shared libraries and executables.

* Collapse the same branches
2020-05-12 07:31:03 -05:00
Nikita Kniazev
85de9920a9 Fixed negation in conditional (#594) 2020-05-12 07:30:04 -05:00
Rene Rivera
319b6aa2a3 Rewrite yyacc util to actual C++.
Rewriting the yyacc utility in C++ makes it ASAN safe and hence makes it
possible to build an ASAN enabled b2 engine. To eventually make all
of the b2 engine ASAN safe.
2020-05-11 20:41:35 -05:00
Nikita Kniazev
72746a1444 Pass /nologo to rc (#601)
Supported at least with Resource Compiler Version 6.1.7600.16385 that comes in
Windows SDK v7.0A, the oldest you could obtain nowadays.
2020-05-10 19:55:24 -05:00
Andrey Semashev
e382e3acb1 Updated instruction-set feature with new x86 targets. (#597)
* Changed icelake to icelake-client and icelake-server. The single
  icelake switch is not accepted by gcc.
* Added cascadelake, cooperlake and tigerlake Intel targets.
* Added znver2 AMD target.
* Added c7 VIA target.
* Reordered the list of targets in instruction-set definition
  to group targets by CPU vendors.
* Updated toolsets with the new and updated values of instruction-set.
* Updated .py files as well. Added instruction-set values that were
  missing compared to .jam files.
2020-05-10 19:40:32 -05:00
Nikita Kniazev
71ec792806 Set CRLF line endings for .bat/.cmd files (#571)
Git does not understand `svneol`
2020-05-10 19:39:24 -05:00
Nikita Kniazev
f8327ba35b apt-get -o Acquire::Retries=3 (#600) 2020-05-10 19:27:23 -05:00
Nikita Kniazev
7fb91652ca Parallel B2 engine compilation on MSVC (#598) 2020-05-08 22:43:50 -05:00
Nikita Kniazev
f3f2b103d4 Fix config_toolset.bat VC14 flags (#595) 2020-05-06 20:52:04 -05:00
Andrey Semashev
677e2f3d54 Add cxxstd value 20 for C++20 (#592)
* Added cxxstd value 20 for C++20.

The -std=c++20 is supported by clang 10.

* Updated cxxstd=latest for clang 5.0 and newer.

clang 5.0 supports -std=c++17. clang 6.0 supports -std=c++2a.
clang 10.0 supports -std=c++20.

* Updated cxxstd=latest for gcc.

gcc 4.9 supports -std=c++14. gcc 6 supports -std=c++17. gcc 10 will support
-std=c++20.

* Added support for cxxstd=20 to toolsets that don't support C++20.
2020-05-06 10:56:38 -05:00
Nikita Kniazev
e256ee6312 Use /Zc:inline and /Zc:throwingNew flags (#575)
* Use /Zc:inline flag

VC12.0 (VS2013 Update 2) introduced /Zc:inline opt-in standard conformance
compiler flag that also similar to linker /opt:ref removes unreferenced
variables and functions that have internal linkage

* Use /Zc:throwingNew flag

VC14.0 introduced /Zc:throwingNew opt-in flag that disables a workaround
for not throwing operator new in VC up to 6.0
2020-05-05 13:37:51 -05:00
Nikita Kniazev
0eadb37690 Print fopen fail reason (#583) 2020-05-05 08:46:17 -05:00
Mateusz Łoskot
3a4bc7e4a0 Replace VS 2017 with 2019 for reference to msvc-14.2 [ci skip] (#588) 2020-05-04 20:01:28 -05:00
Nikita Kniazev
4201934664 Fill extra and pedantic warning options for every compiler (#576)
I tried my best but since I do not have access to all these compilers the
changes are based on docs I have found.
2020-05-04 19:54:05 -05:00
Rene Rivera
7d9866256d Allow testing toolsets that use response files.
This adds exclusions for toolsets that use response files for some
commands. Mostly it ignores the generated rsp files.
But also adds a special arg_file value to the MockProgram for future
use for possible content checking.
2020-05-01 10:13:28 -05:00
Mateusz Łoskot
7c44b005d5 Ignore VSCode workspace file [ci skip] 2020-04-30 21:47:48 +03:00
Mateusz Łoskot
e31d397d03 Add missing arguments separator in launch.json [ci skip] (#578) 2020-04-24 20:31:36 -05:00
Nikita Kniazev
ae6f588f92 Replace /Ox with /O2 and remove /Zi (#572)
Reduces b2 executable size for 60% (1174KiB vs 465KiB)

/O2 is essentially /Ox /GF /Gy
/Zi implies /debug which disables /opt optimizations
2020-04-19 17:17:39 -05:00
Nikita Kniazev
c84805991d Build B2 using native arch MSVC (#565) 2020-04-18 13:06:03 -05:00
Alexander Karzhenkov
1b33c2cd50 Add QNX target option to archiver command (#570) 2020-04-18 13:05:02 -05:00
Alexander Karzhenkov
b2ab623790 Select appropriate QNX target platform (#568)
Select appropriate QNX target platform
2020-04-16 10:12:33 -05:00
Rene Rivera
d1b355dcb2 Merge branch 'develop' of https://github.com/boostorg/build into develop 2020-04-08 07:53:46 -05:00
Rene Rivera
ad6cbcf591 Set explicit crlf for bat files. 2020-04-08 07:53:32 -05:00
Edward Diener
4530314f17 Improved Embarcadero generated command lines by using response files. Corrected system library paths. (#564)
* Use a response file for direct linker dependencies.

* Improved the command lines generated for compilation and linking by using response file. Corrected the system library files directories which should be used for bcc32x and bcc64.

Co-authored-by: Edward Diener <eldlistmailingz@tropicsoft.com>
2020-04-07 07:35:38 -05:00
Nikita Kniazev
943a28a8ba Fix pch path conflict on GCC (#563)
* Follow-up to removed restriction of pch naming on GCC

* Fix pch path conflict on GCC

gcc-pch-generator rewrites target name to a value derived from a header name
and this cases path conflict if multiple pch are created from the same header.

hello.cpp is duplicated in the test for the same reason but for `exe` target --
`exe hello-afx : hello.cpp ;` uses `hello.o` for object file name.
2020-04-03 20:27:41 -05:00
Nikita Kniazev
8198576481 Remove pch target naming restriction on GCC (#561)
Do not require pch target to have the same name as the header base name.

The restriction was added in 76d041d7c1 without
a rationale and only for GCC while reworking PCH support for GCC and MSVC.
2020-04-03 07:30:15 -05:00
Nikita Kniazev
f384d2f5a8 force-include feature (#558)
Specifies an include path that has to be included in a way like if
`#include "file"` appeared as the first line of the primary source file.
2020-04-02 11:56:47 -05:00
Bo Anderson
b3a59d2659 Fix compiler version check on macOS (#560)
Fixes #440.
2020-04-01 19:31:47 -05:00
Rene Rivera
ac2c8d6b27 Fix test build with correct toolset. 2020-04-01 08:47:13 -05:00
Rene Rivera
ff17b133c1 More exec path adjustments. 2020-04-01 08:28:55 -05:00
Rene Rivera
85ea8981e4 Change b2 exec path. 2020-04-01 08:26:51 -05:00
Rene Rivera
28ca422eb3 Don't need to sub-cmd now. 2020-04-01 07:49:07 -05:00
Rene Rivera
5e5f4131c4 Fix some cmd syntax errors. 2020-04-01 07:45:09 -05:00
Rene Rivera
86884e38b8 Switch to cmd for appveyor. 2020-04-01 07:42:55 -05:00
Rene Rivera
8e3edfb0d6 Remove temp debug echo-s. 2020-03-31 22:16:18 -05:00
Rene Rivera
f414639736 Remove vc11 engine build. 2020-03-31 21:47:38 -05:00
Rene Rivera
48fb55c653 Temp: echo build execute. 2020-03-31 20:40:47 -05:00
Rene Rivera
24626819c2 Temp: print config_toolset execution. 2020-03-31 20:15:50 -05:00
Rene Rivera
8f3bd9e842 Remove left-over gcc pragma. 2020-03-31 14:59:26 -05:00
Rene Rivera
a47bd89c60 Fix missing predef or. 2020-03-31 14:36:22 -05:00
Rene Rivera
085fc552c9 Avoid pragma syntax warning in non-msvc compilers. 2020-03-31 14:33:44 -05:00
Rene Rivera
107c3d30c8 Have to disable warning in Windows header. 2020-03-31 12:24:13 -05:00
Rene Rivera
7f85769fd0 Fix implicit bool cast warning. 2020-03-31 11:33:46 -05:00
Rene Rivera
d799bcc52a Avoid warning from STL during build on msvc14. 2020-03-30 22:33:19 -05:00
Rene Rivera
3b42540d70 Split the test script steps to allow early fails. 2020-03-30 22:16:28 -05:00
Rene Rivera
302044f421 Fail test immediately. 2020-03-30 21:26:18 -05:00