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

4209 Commits

Author SHA1 Message Date
Rene Rivera
765c3af806 Revert "Add target argument to tag rule invocations so that tag rules can get infmration on the specific target they are naming. This is useful, for eaxmple, in finding the sources and basing name changes on that."
This reverts commit 327890fe2b.
2015-02-27 11:13:07 -06:00
Rene Rivera
e9c3ddd3d9 Merge branch 'develop' of https://github.com/boostorg/build into develop 2015-02-26 21:10:49 -06:00
Rene Rivera
327890fe2b Add target argument to tag rule invocations so that tag rules can get infmration on the specific target they are naming. This is useful, for eaxmple, in finding the sources and basing name changes on that. 2015-02-26 21:08:43 -06:00
Steven Watanabe
89d6d77396 Issue an error when a file is linked from more than one source directory. 2015-02-26 10:15:32 -07:00
Steven Watanabe
2520b6c1bf Make sure that files and directories under a deleted symlink are restored if needed. 2015-02-25 20:22:56 -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
Steven Watanabe
25899a8073 Fix some problems when splitting a linked directory. This can show up when adding a new library. The bug was order-dependent and didn't appear in the original tests. 2015-02-24 13:37:53 -07:00
Steven Watanabe
52f7ac2c65 Make sure that symlinks are updated when switching from a non-symlink configuration. Add tests for every possible combination of configuration switching. 2015-02-24 12:55:36 -07:00
Steven Watanabe
2e72499351 Junctions are only possible on windows. .can-junction is used directly in some places, which resulted in always enabling symlinks on non-Windows. 2015-02-24 10:48:00 -07:00
Steven Watanabe
86456a9028 Fix path comparison problem on Windows, when READLINK returns a path with a lower case drive. 2015-02-24 10:21:07 -07:00
Rene Rivera
37acf89aad Fix for some test programs that require some form of input stream by
providing a null one for them to open instead of the non-existent pipes.
2015-01-28 16:11:26 -06:00
Rene Rivera
3067e149f5 Add optional specification of subroot path for project extensions. 2015-01-27 09:43:56 -06: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
Bekenn
d268890d26 Fix naming of tag_tagged. 2014-11-29 10:28:22 +03:00
Kirit Sælensminde
c2529b667a Don't pass unsupported -finline-function option. 2014-11-25 10:11:15 +03: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
Aaron Boman
e965b8e84a Add support for version. 2014-11-06 09:51:18 +03:00
Aaron Boman
a333481070 Fix undeclared variable. 2014-11-06 09:50:57 +03:00
Aaron Boman
a9107006dd Property comparisons should be comparing feature names not feature instances. 2014-11-06 09:50:27 +03:00
Aaron Boman
b184816213 Print the actual values rather than a pointer to a function. 2014-11-06 09:49:49 +03:00
Aaron Boman
64d0521572 Add support for abbreviated paths. 2014-11-06 09:47:46 +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
Aaron Boman
e413fd9406 Preserve order of properties in PropertySet. 2014-10-24 23:10:22 +04:00
Vladimir Prus
e484a7de15 Merge pull request #45 from jurko-gospodnetic/cleanup_and_small_fixes
Fix typos in comments.
2014-10-24 11:07:18 +04: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
Jurko
b0811243d7 Fix comment typos. 2014-10-23 09:11:00 +02:00
Jurko
ce71e894b2 Fix dependendency --> dependency comment typo. 2014-10-21 14:38:35 +02:00
Jurko
c94645a01a Fix error message typo - same named targets with different properties. 2014-10-21 14:38:35 +02:00
Jurko
dcd0b7d1a2 Fix a dependecy --> dependency comment typo. 2014-10-21 14:38:34 +02: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
Aaron Boman
2f6ee88755 Add support for ranlib. 2014-10-07 11:29:40 +04:00
Vladimir Prus
2ce8b7a51f Miscellaneous improvements from Aaron Boman.
feature.py:

Use the feature's name in the error output. This helps in understanding the
error message.

project.py:

The original looked like the result of a bad merge as the return value was the
exact same as the return within the try...except block. The try...except
produces a better error message upon failure.

property_set.py:

The string module is unused.

virtual_target.py:

ARM's ar.exe would fail when passed a path to the -via file that had both
POSIX and Windows path separators. Normalizing the path on the target solved
the problem.

common.py:

The requirement parameter in check_init_parameters should be a container. The
original Jam signature marks it as a list with zero or more items. These
changes convert the requirement parameter to using only a container.

msvc.py:

The call to to_seq asserts that command is always some container. So, extend()
should always be used.

tools/rc.py:

Old style exceptions aren't allowed (at least in Python 2.7). This change just
uses the existing AlreadyDefined exception.

testing.py:

loaded_tool_module_path_ is empty upon initial import. Using the __file__
variable instead will always work (provided the import system doesn't change).
2014-10-07 11:24:20 +04:00
Aaron Boman
9821a98b50 Add C scanner 2014-10-07 11:17:36 +04:00
Aaron Boman
9e3147234d Add module's location to loaded_tool_module_path_ dict. 2014-10-06 13:16:51 -05:00
Aaron Boman
29273d767d Use __file__ variable for location. 2014-10-06 12:38:42 -05:00
Aaron Boman
e246c73936 Old style exceptions don't work. 2014-10-06 12:37:46 -05:00
Aaron Boman
0abdbd568b command is always a sequence, always use extend(). 2014-10-06 12:37:10 -05:00
Aaron Boman
905a816239 check_init_parameters: requirement should be a container. 2014-10-06 12:35:10 -05:00
Aaron Boman
7c7a99850a Fix pathing issue. ARM's ar.exe didn't like the mis-matched path separators. 2014-10-06 12:33:59 -05:00
Aaron Boman
4554c31585 Remove unused import 2014-10-06 12:32:33 -05:00
Aaron Boman
3655ad21a3 Remove return in favor of try...except return. 2014-10-06 12:32:04 -05:00
Aaron Boman
3a7d9eed87 Use feature name for better error output. 2014-10-06 12:31:22 -05:00
jzmaddock
3ae16f3d46 Add support for Intel 15, fix Glob Bug, and compiler path selection bug.
This patch fixes 3 issues:

- Adds support for Intel-15 so MSVC version can be auto-selected.

- Changes GLOB to path.glob as for some reason the GLOB rule always
fails when used in this context (discovered when testing this patch).

- Changes selection logic for target-types variable - previous code
used the value of PROCESSOR_ARCHITECTURE to detect this, but that
appears to only tell you which sub-system bjam is running in. For
example on my system bjam is a 32-bit app (default for an msvc build),
but I only have the Intel 64-bit compiler installed (under /intel64/).
New logic checks whether the intel64 compiler exists and uses that if
it is - Intel's installer won't install this on 32 bit platforms in
which case the glob fails and things fall back to the ia32-intel64
cross compiler when address-model=64 is specified.
2014-09-22 23:07:21 +04:00
Vladimir Prus
be7ae61cae Merge pull request #32 from frenchtoast747/features/python-module-import
Python Port: Make importing more robust.
2014-09-10 21:55:21 +04:00