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

37 Commits

Author SHA1 Message Date
René Rivera
936cf317f2 Properly quote or adjust paths to python on toolset mock tests to allow for spaces in the python exec path. 2024-11-12 23:03:15 -06:00
Nikita Kniazev
a7af57e291 clang-win: use lld linker, fix embed-manifest-via=linker (#385)
Fixes bfgroup/b2/issues/159
2024-05-21 14:28:36 -05:00
Rene Rivera
9e3cf110de Fix many incorrect string escape sequences. 2023-11-30 19:58:21 -06:00
Nikita Kniazev
a072cd12e9 unify clang-vxworks by inheriting from clang-linux (#287)
`<linker>` override is preserved and passed to clang as the linker to use.
2023-04-24 09:04:52 -05:00
Nikita Kniazev
e8a753db99 mingw/msys/cygwin winthreads/pthread fixes (#284)
-mthreads is obsolete and is not presented in clang, and was never a thing in cygwin (fixes #38).

I have no idea why clang was configured to add -pthread on threadapi=win32, changing this is a breaking change but is the right thing to do. I run Boost.Thread tests and it passed cleanly on both threadapi=win32 and threadapi=pthread.
2023-04-23 20:50:28 -05:00
Nikita Kniazev
4d7d2831c8 unify clang-darwin linking with gcc (#281) 2023-04-22 15:34:01 -05:00
Nikita Kniazev
96a5bdd8d2 mock tests without compiled wrappers (#274)
Removes additional point of failure, the need for actual toolset to be available, and speeds up mock tests considerably.

A bit disgusting solution, could be improved by removing limitation where toolsets take into account only first `<archive>` value.
2023-04-20 21:38:57 -05:00
Nikita Kniazev
fcaafb3593 python3 shebang (#258)
* python3 shebang
* CI: execute python scripts via shebang
2023-04-17 09:19:00 -05:00
Nikita Kniazev
596a8642b0 unify gcc and clang-linux soname option (#257)
I choose -soname over -h since it is self-describing and well-supported, libtool.m4 uses -h only on solaris, interix, sco, unixware.
This also disables soname on windows completely. lld on msys2 clang64 for some reason doesn't implement neither -h nor -soname. I checked that on msys2 (cygwin) gcc it produces identical dlls w/ and w/o -soname (with --no-insert-timestamp).
2023-04-16 16:38:33 -05:00
Nikita Kniazev
7cf7bdabb3 clang-linux: don't override RPATH_OPTION (#250)
I don't know if there any system where -R option is supported while -rpath is not, seems like it usually the other way around. Anyway it should be dealt in gcc toolset then.
2023-04-09 22:59:45 -05:00
Nikita Kniazev
8df1ee945e clang-darwin: inherit from clang-linux and unify compile (#246)
There are some tricky differences in linking, so left that part for later.
2023-04-09 11:11:06 -05:00
Nikita Kniazev
abd89f0188 clang-linux: unify compile and link with gcc (#228) 2023-04-08 00:38:17 -05:00
Rene Rivera
46dce6aaa9 Adjust tests for addition of clang target option. 2022-04-28 08:21:23 -05:00
Nikita Kniazev
7568c84471 MSVC mock test (#125)
Initial step in fixing flags issues
2022-02-12 21:22:40 -06:00
Nikita Kniazev
2b1a9de81b Replace ranlib call with s flag in ar call (#56)
`ar s` seems to be widely supported for a very long time:
  - at least binutils 2.10 (June 2000)
  - at least Darwin 8.0 (April 2005)
  - since FreeBSD 3.0 (October 1998)

Note: Most of other (non-widely used) toolsets do not call `ranlib` and do not call `ar` with `s` flag either. I have no idea if they are correct or not, so I am not touching them here.
2021-07-25 21:52:12 -05:00
Rene Rivera
c9cc1ae2ed Replace refs to boost.org witth bfgroup.xyz. 2021-02-20 21:35:16 -06:00
Rene Rivera
03ef46ec4d Add python coding hint as py is too dumb to figure it out by itself. 2020-12-13 21:52:12 -06:00
Rene Rivera
e206f0d602 Initial implementation of dynamic response files.
This implements the ability for response file "@()" substitution to
dynamically adjust to either expand the content or create the response
file depending on the possible command line length. This should
reduce the create of such response temp files improving build
performance.
2020-12-13 21:30:03 -06:00
Edward Diener
992e1044ba Using latest clang-linux-3.9.0.py. Corrected msvc.jam once again. 2020-06-04 22:21:11 -04:00
Edward Diener
b03b5d2808 Merge branch 'develop' of https://github.com/eldiener/build into cppbuilder 2020-05-19 11:50:13 -04:00
Rene Rivera
c2137c3503 Allow wildcard matching for arg_file type args. 2020-05-14 20:24:55 -05:00
Edward Diener
2cfc73214d Merge branch 'develop' of https://github.com/boostorg/build into cppbuilder 2020-05-02 00:38:21 -04:00
Edward Diener
3c06be3d2f Updated fies. 2020-05-02 00:37:39 -04: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
Rene Rivera
a3b3054856 Merge remote-tracking branch 'origin/develop' into feature/cxx 2019-04-01 21:04:59 -05:00
Steven Watanabe
1c50088007 Propagate the python executable for the mock toolset tests. 2019-04-01 14:20:53 -06:00
Rene Rivera
85e5a2caa8 Port b2 tests to dual py2 and py3.
Now that the tests work in py2 or p3 we don't set py version in AP. This
allows for dealing with the AP images that don't have a way to set the
py version.
2019-03-31 15:37:03 -05:00
Steven Watanabe
9470cebaf8 Don't duplicate linker flags for clang. 2018-01-31 12:42:04 -07:00
Steven Watanabe
b5605d6f4a Add tests for clang-vxworks and some fixes. Fixes #278.
Squashed commit of the following:

commit a777fc2ed9
Author: Brian Kuhl <brian.kuhl@windriver.com>
Date:   Fri Jan 12 00:22:37 2018 -0500

    configure VxWorks/Dinkum STL to match <rtti>/<exception-handling>
2018-01-25 10:22:21 -07:00
Steven Watanabe
c4bfb6d2f7 Make mock-program compile in C++03 2018-01-08 19:15:46 -07:00
Steven Watanabe
12decb3ce6 Rewrite gcc to use toolset.flags again. 2018-01-01 12:51:43 -07:00
Steven Watanabe
205146c15f Tests for clang-linux. 2017-12-29 12:32:58 -07:00
Steven Watanabe
dda019c9d9 Tests for intel-darwin. 2017-12-28 15:40:00 -07:00
Steven Watanabe
6ffd6b9c7a Add test for clang-darwin. 2017-12-27 13:30:23 -07:00
Steven Watanabe
53cf891d8a Add test for the darwin toolset. 2017-12-26 21:27:01 -07:00
Steven Watanabe
a84c6d4c0c Add gcc/target-os=darwin test. 2017-12-26 16:31:37 -07:00
Steven Watanabe
858ad964c9 Add a mock of gcc as a first step towards testing all toolsets. 2017-12-23 15:57:26 -07:00