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

1042 Commits

Author SHA1 Message Date
Kohei Takahashi
8b9dbbe418 Add support for FreeBSD 10 or later.
Since FreeBSD 10, it uses clang as a system default compiler.
freebsd-version is used to detect FreeBSD version.
2016-03-10 09:30:04 +03:00
Michał Górny
de9a600167 Do not pass -Ofast to pathscale toolset
Do not pass -Ofast when using the pathscale toolset. It enables insecure
optimizations, and that is probably why no other toolset uses this
option. It also causes internal compiler problems with current pathcc
versions.
2016-03-09 09:55:40 +03:00
Steven Watanabe
aaeedea9cc Fix a leak and a missing copy when building with the global string table disabled. 2016-03-04 12:28:42 -07:00
Steven Watanabe
b015a40847 Don't close the file automatically in yyline. We need yylval.file to survive until the parser is really done. 2016-03-04 11:38:50 -07:00
Steven Watanabe
f00b27cf5a NDEBUG disables OBJECT_MAGIC. 2016-03-04 11:11:40 -07:00
Steven Watanabe
8f39cdebc9 Fix two memory leaks and a double free. 2016-03-04 11:08:28 -07:00
Steven Watanabe
f5e005e8f3 Fix memory leak on cygwin and vms. path_copy initializes a new string. It should never be used on a string that is already initialized. 2016-03-01 11:32:34 -07:00
Steven Watanabe
9da5a06af8 Add missing header. Without this OS_CYGWIN is not defined which causes the :W modifier to fail. 2016-03-01 11:22:20 -07:00
Vladimir Prus
2f8e4ae868 Do not use 'mingw' as bootstrap toolchain name.
Instead, use gcc everywhere and detect the target to decide whether we need
to use POSIX or Windows runtime.
2016-02-17 16:27:28 +03:00
Vladimir Prus
4a5cf7f909 OpenVMS support.
See https://github.com/boostorg/build/pull/100
2015-12-14 02:46:44 -05:00
Aaron Boman
55593971a8 Provide error message and stacktrace with bad parameter to bjam.call() 2015-12-14 02:15:32 -05:00
wmarquesr
0cb7b16543 Refactoring conditional directives for incomplete if conditions. 2015-12-14 02:05:55 -05:00
Artur Shepilko
63021f6d64 Add GLOB_ARCHIVE builtin. 2015-10-24 12:21:31 -05:00
Artur Shepilko
c696419e2a Add bootstrap on VMS, use POSIX-style path handling. 2015-10-24 12:21:31 -05:00
Artur Shepilko
4cf86b31ca Exit program with a consistent error status. 2015-10-24 12:21:30 -05:00
Aaron Boman
b04bfcf171 Add type checking to help ease porting.
- Adds python optimization by default with a "-z" disable flag.
- Add type checking to bjam_signature and type checking asserts.
- Fix a type assertion in testing.
2015-09-17 09:54:46 +03:00
Artur Shepilko
04553d1ed4 Add missing defines to enable bootstrapping with vc8 toolset. 2015-09-03 14:16:29 +03:00
Vladimir Prus
bd97806025 Report Python paths used for build. 2015-08-19 11:16:23 +03:00
Vladimir Prus
688607d5db Split bjam_call into smaller functions. 2015-08-19 11:13:51 +03:00
Matthaus Owens
eefd58579e Use test_path instead of which
which was used to detect icc, but on some platforms such as solaris 10
which always returns 0, even when the command is not found on the path.
This commit updates the invocation to use the test_path function
instead, which does return non-zero on solaris 10 in the failure case.
2015-08-10 12:38:20 -07:00
Matthaus Owens
bcdb695438 Use sh compliant subshells
In commit d21102f2a1, the icc detection
was updated to use bash style subshells, which breaks on systems that
have just sh, such as solaris 10. This commit updates the detection to
use `` style subshells instead of $().
2015-08-10 12:38:20 -07:00
Rene Rivera
f191b3cc7e Merge pull request #82 from camorton2/xlcpp-toolset-build
Xlcpp toolset build
2015-07-22 11:19:23 -06:00
Jürgen Hunold
0956e85395 Bump version number to 2015.07
And change -svn to -git
2015-07-18 10:40:22 +02:00
Catherine Morton
1f61ae4edb fix permissions 2015-06-02 15:29:22 -04:00
Catherine Morton
78c2632878 adding toolset for xlcpp 2015-06-02 12:58:39 -04:00
Steven Watanabe
ae1183ee2d Return really returns now. Also implement break/continue. 2015-04-18 14:30:43 -06:00
Rene Rivera
5f22da72aa Reporpous "-o" option to mirror all BB output to the specified file.
Useful for script control and for users to obtain a log in an easier
cross-platform manner.
2015-04-10 09:07:56 -05:00
Steven Watanabe
2585b08e7e Remove unused variables from TARGET and shuffle some of its other members so they pack more efficiently. 2015-03-24 11:44:40 -06:00
Steven Watanabe
1a87fc9da1 Adjust the alignment check to account for platforms with lower alignment requirements for pointers. Fixes #8993. 2015-03-13 20:13:27 -06:00
Steven Watanabe
30d35ce80d Make order stable. This restores the old behavior of printing includes in alphabetical order. When I added the topological sort for includes, it caused directories with no constraints to be printed in reverse alphabetical order under some circumstances. This broke existing users who relied on the original order. While I believe that users should not depend on any order for include directories that is not explicitly stated, I'd rather not gratuitously break such uses. This is especially true since explicitly ordered includes only worked in the simplest cases prior to my topological sort patch. 2015-02-28 14:16:34 -07:00
Oliver Kowalke
4a3a99bf30 check __aarch64__ for ARM
Macro __arm__ is not set on Aarch64 architecture
2015-02-25 12:23:40 +03:00
K. Noel Belcourt
f5b31b30aa Block signals to end of exec_cmd. 2015-01-02 16:25:18 -07:00
K. Noel Belcourt
87fa34a0c8 Fix typo in the cleanup to setpgid in parent process. 2014-12-29 08:40:51 -07:00
K. Noel Belcourt
dbb521a6ba Remove bogus setpgid diagnostic. 2014-12-28 22:01:42 -07:00
K. Noel Belcourt
b1e0b621c4 Make system call conform to posix.2 signal handling
a la Steven's APUE, pg 314.
2014-12-28 21:57:18 -07:00
Jessica Hamilton
7f0d33a7b0 haiku: platform support 2014-11-25 09:13:21 +03:00
Alain Miniussi
d21102f2a1 Detect the intel compiler in the environement.
The mentioned 'standard' path were quite old (9.0, last Intel
compiler version is 15.x as on Oct 2014). Keept the legacy
detection though.

Build in 64 bit (seems more common).
2014-11-06 09:54:22 +03:00
K. Noel Belcourt
156bc5c42e Make setpgid checks non-fatal.
Comment out the call to exit following a failed
called to setpgid.  Can re-enable in the future.
2014-10-24 18:11:34 -06:00
K. Noel Belcourt
7bcbc5ac31 Check setpgid return value in parent and child.
A user is having trouble with calls to setpgid failing
with EPERM and we're not sure whether it's the call to
the parent, or child process that is the source of the
failure.  Add check with explicit indication whether
the parent of child failed.
2014-10-24 16:40:47 -06:00
kjedruczyk
c79ea493ff Fixed null ptr dereference in executable_path on solaris when getexecname fails. 2014-10-24 11:05:42 +04: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
Noel Belcourt
252b5aa019 Block SIGCHLD during select.
Select was losing child termination signals so we explictly
block SIGCHLD during select, and unblock after select returns.
Tested on 256 core smp system, no hangs or zombies.  Thanks
to Alain Miniussi <alain.miniussi@oca.eu> for reporting this.
2014-10-21 00:23:53 -06:00
Jürgen Hunold
20a3fb2981 Merge pull request #5 from jivancic/more_than_64_jobs
[b2] support more than 64 parallel jobs (-j)
2014-07-02 16:55:03 +02:00
Marcel Raad
a106dd3798 Add support for MSVC 14 2014-06-11 21:14:03 +02:00
Steven Watanabe
d782ec52d0 Don't exit immediately on Windows if JAMSHELL is % and CreateProcess fails. 2014-04-03 14:13:33 -07:00
Steven Watanabe
23032af425 Parentheses are not allowed in REMs. Fixes #9800. 2014-04-03 09:13:53 -07:00
Steven Watanabe
702d40baf9 Fix build with MinGW. Fixes #9301. 2014-04-03 09:00:19 -07:00
Steven Watanabe
9732c695d1 Fix bug in pathnt.c that caused the results of GLOB to be downcased under some circumstances. 2014-03-24 15:18:37 -07:00
Steven Watanabe
9fb7faedcc Increment Boost.Build version 2014-03-07 12:24:12 -08:00
Steven Watanabe
7f8aac5d5e Add support for junctions on Windows 2014-02-06 14:54:40 -08:00