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

1464 Commits

Author SHA1 Message Date
Vladimir Prus
f72a5d8072 Use common.get-invocation-command
[SVN r23165]
2004-06-23 08:18:05 +00:00
Vladimir Prus
d8dbd13bd1 * tools/borland.jam (init): Rewrite.
* tools/common.jam (get-absolute-tool-path): New rule.


[SVN r23164]
2004-06-23 08:10:25 +00:00
Vladimir Prus
ee91fd2b96 Make gcc init parameters consistent with other toolsets. Now one needs:
using gcc : 3.3 : g++-3.3 ;

not

  using gcc : 3.3 g++-3.3 ;

Also fix a typo.


[SVN r23140]
2004-06-21 11:01:45 +00:00
Vladimir Prus
db4c8013f7 Add more std comformance options for intel when not in vc-compatible mode.
The options were contributed by Jurgen.


[SVN r23139]
2004-06-21 10:56:32 +00:00
Vladimir Prus
ab41660e51 Improve initialization of intel and sun compilers.
[SVN r23138]
2004-06-21 10:52:11 +00:00
Vladimir Prus
df30228ba8 Make verson parameter to intel-linux.init optional. New rules common.find-tool
and common.check-tool to help autodetect toolsets.


[SVN r23136]
2004-06-21 09:48:39 +00:00
Vladimir Prus
49e45ae346 Fix typo.
[SVN r23135]
2004-06-21 09:14:40 +00:00
Vladimir Prus
f5279c4b87 Improve diagnostics. Previously, targets reference A/B/C//D where the A/B/C
part was incorrect, generated an internal error and backtrace. Now it's
property reported as invalid target id.


[SVN r23134]
2004-06-21 09:13:21 +00:00
Rene Rivera
4fda2ee3e1 Add --c option to force como compiler into C mode compilations.
[SVN r23130]
2004-06-21 00:12:38 +00:00
Vladimir Prus
290db44e13 Fix the logic for adding /Zc:wchar_t option.
[SVN r23118]
2004-06-18 10:38:30 +00:00
Vladimir Prus
97f846b000 Improve the 'duplicate name' error.
* kernel/errors.jam (nearest-user-location): New method.
* build/target.jam (abstract-target.__init__): Set self.location.
  (location): New method.
* build/virtual-target.jam (register-actual-name): Output more information.


[SVN r23117]
2004-06-18 08:27:00 +00:00
Vladimir Prus
7bad7a1e12 Make .current-project a stack and pop an element in project.load, after
reading Jamfile. This allows to explicitly call project.load inside Jamfile,
without changing value of [ project.current ].


[SVN r23116]
2004-06-18 07:47:11 +00:00
Vladimir Prus
f40c465671 Add missing "import".
[SVN r23115]
2004-06-18 07:45:29 +00:00
Vladimir Prus
ef02ee5f7c * build/generators.jam (construct): In addition of not passing intermediate
targets to generators, also return them in together which produced targets.
  This means that intermediate target will be passed though all target and
  eventually end up as dependency of 'all', thereby avoiding the warning
  about independent targets.

  Besides, the reason why intermediate target were invented still applies:
  we want main targets like 'stage' to see all produced targets.

  Thanks to Mark Elston for poiting out on the warning.


[SVN r23106]
2004-06-16 06:32:29 +00:00
Vladimir Prus
28e9aab35b Minor typo: really enable verbose output when command fails.
[SVN r23105]
2004-06-16 06:25:28 +00:00
Vladimir Prus
d2561ac0e1 Whoops... Use 'g++' by default, since with 'gcc' we'll get linker errors
[SVN r23086]
2004-06-11 11:36:41 +00:00
Vladimir Prus
5ea1bb900b Apply cleaner rules for toolset initialization.
* tools/common.jam (check-init-parameters): New rule.
* tools/gcc.jam (init): Make use of the above.
* kernel/errors.jam (user-error): New rule.


[SVN r23084]
2004-06-11 10:54:04 +00:00
Vladimir Prus
a8f659b68b Correct the verbose-test logic.
[SVN r23083]
2004-06-11 09:25:19 +00:00
Vladimir Prus
9e5dbba552 Update testing jam to the same logic for running exes as V1 uses.
[SVN r23066]
2004-06-09 13:40:25 +00:00
Vladimir Prus
6b4a615bea * build/targets.jam (basic-target.generate): Remove duplicates in the list
of sources. Thanks to Jurgen Hunold for the bug report.


[SVN r23058]
2004-06-08 13:56:02 +00:00
Vladimir Prus
c90aab90fb Add missing import.
[SVN r23055]
2004-06-08 08:17:34 +00:00
Vladimir Prus
ff9dd2da76 * build/project.jam (initialize): Don't call path.make when location is
empty (which happens for standalone projects such as stlport). Thanks to
Jurgen Hunold for the bug report.


[SVN r23051]
2004-06-08 05:57:29 +00:00
Vladimir Prus
139a8a6c48 Some doc updates.
[SVN r23038]
2004-06-07 07:34:00 +00:00
Vladimir Prus
0a9ffafd85 Improvements in RC files support.
- Specialized RC->RES generators were added for msvc. This allows
  to invoke setup script before calling rc.exe, which adds necessary
  include paths.
- Includes scanner for RC files added.

Thanks to Alexey Pakhunov for the patch.


[SVN r23036]
2004-06-07 07:24:24 +00:00
Vladimir Prus
882d62b6b9 Fix a couple of project.attribute calls. The method should not be called now,
and does not work, either. Thanks to Michael Stevens for the bug report.


[SVN r23023]
2004-06-04 12:57:48 +00:00
Christopher Currie
4476bbe622 Add option to inhibit non-PIC link warning on Solaris
[SVN r23020]
2004-06-03 15:14:04 +00:00
Vladimir Prus
d5f4e78bb2 * tools/testing.jam (dump-test): Correctly compute path to the source
from project root.


[SVN r23018]
2004-06-03 08:47:14 +00:00
Vladimir Prus
576a99a21d Refactorings.
* build/project-roots.jam (load): Return object, not project root module
* build/project.jam (initialize): Renamed 'project-root-modue' attribute to
 'project-root'.


[SVN r23017]
2004-06-03 08:32:34 +00:00
Vladimir Prus
e507aa7208 Add missing 'path.make' for source-location attribute. Thanks to
Victor A. Wagner for discovering the problem.


[SVN r23016]
2004-06-03 07:46:48 +00:00
Vladimir Prus
3f783b7b2e Refactorings.
The targets (both abstract and virtual) used to refer to project there belong
to using the name of Jamfile module corresponding to the project. That was a
bit messy, and whatevet it was necessary to get any project attribute, one
had to call 'project.attribute', which was messy too.

Now, projects are identified by instance of project-target class, and
attributes are obtained via 'get' method in that class.


[SVN r23001]
2004-06-02 14:26:15 +00:00
Vladimir Prus
c5d658939b Update tests to recent unit-test changes
[SVN r23000]
2004-06-02 14:19:16 +00:00
Rene Rivera
7bec1dd305 Bump version to 3.1.10 for release.
Update copyrights to new Boost License.


[SVN r22987]
2004-06-01 05:42:36 +00:00
Vladimir Prus
0af58086dc Comment out
using gcc ;

Seems it was uncommented by mistake.


[SVN r22984]
2004-05-31 13:26:29 +00:00
Rene Rivera
7561c0342b Add quotes for tool executable invocations to account for paths with spaces.
[SVN r22976]
2004-05-30 18:32:08 +00:00
Vladimir Prus
3c4b3dfe56 Implement 'unit-test' in terms of more powerfull 'run' rule. Understand
the 'testing.launcher' property for 'run' rule.


[SVN r22968]
2004-05-28 12:28:10 +00:00
Vladimir Prus
9dc0ae95fb Added the Intel toolset support.
[SVN r22966]
2004-05-28 12:04:36 +00:00
Vladimir Prus
2b1e669c44 Gcc version os no longer link-incompatible.
[SVN r22965]
2004-05-28 12:02:10 +00:00
Vladimir Prus
1143b23a6c Fix handling of conditinal properties, broken a recent commit.
1. Don't break where there are several elements in condition.
2. Don't validate <toolset> feature in condition, since we might
   not have initialized all possible toolsets.


[SVN r22964]
2004-05-28 10:45:31 +00:00
Vladimir Prus
521b58e5e9 Properly hardcode dll paths, even if library was not produced by 'lib' target,
but was specified as file.


[SVN r22963]
2004-05-28 08:46:49 +00:00
Vladimir Prus
a6872ff45b Support inline targets in sources of 'stage'.
[SVN r22962]
2004-05-28 08:46:00 +00:00
Vladimir Prus
29f34eb193 Remove 'link-incompatible' attribute from some feature, most notable
'toolset' and 'threading'. The reason is that current link-compatibility
check is way too simple minded and produces bogus warnings. For example,
linking MT library into single threaded application is OK. Likewise, some
toolsets are link-compatible.

We might need a better mechanism, but for now just make the feature
link-compatible. Useless warnings are much worse than failure to report
link-incompatibility in some cases.


[SVN r22949]
2004-05-27 07:39:17 +00:00
Vladimir Prus
33b864e88e Don't run library_order.py on Windows, since the test makes no sense there,
does not work, and can't be easily fixed.


[SVN r22933]
2004-05-26 10:59:48 +00:00
Vladimir Prus
240105ee1b Add 'xdll-path' properties to run-time DLL search path for tests. Previously,
we added only dll-path properties and the logic that created dll-path
properties from xdll-path properties did not work right on Windows.

It makes more sense anyway to always add all paths for dendency libraries.


[SVN r22932]
2004-05-26 10:57:22 +00:00
Vladimir Prus
c67d617721 Bugfix: when staging, change locations on all targets produced by an action,
not only on the one we're staging.

On Windows, the action that produces EXE also produces RSP file. If location
of RSP file is not changed when staging, both staged EXE and original EXE will
try to use the same RSP file and that will cause 'duplicate virtual target'
error.


[SVN r22931]
2004-05-26 10:54:55 +00:00
Vladimir Prus
2eec4041cb Minor fixes.
[SVN r22930]
2004-05-26 10:52:11 +00:00
Vladimir Prus
eab58ea895 Fix a couple of bigs:
1. <toolset>intel-linux-8.0 did not work in conditional requirements
2. Paths line C:/something/../a.cpp did not work on Windows.


[SVN r22929]
2004-05-26 10:50:42 +00:00
Vladimir Prus
7e92fe2772 When inheriting generators, allow to replace original <toolset> property
with arbitrary property list, for example

     <toolset>intel <toolset-intel:platform>win


[SVN r22928]
2004-05-26 10:48:16 +00:00
Vladimir Prus
79cd3623f4 Remove check for 'unused sources'. The check causes bogus warnings in at least
a couple of cases.

1. On Windows, DLLs are never directly linked to, so they are considered
   unused and cause a warning. There used to be special code in
   exe-target-class and lib-target-class to supress that warning, but this
   failed for unit-test, for example, since main target class for unit test
   is not related with exe-target-class. And making yet another main target
   class looks ugly.
2. A target specified via project-wide <source> or <library> property is
   added to sources for all targets, and cause a warning when it's not used.
   However, there are valid cases to ignore such sources. For example

       obj a : a.cpp : <optimization>off ;

   need to comsume any libraries.

It was not clear how to fix both problems. Further, the only case when I found
the warning to be usefull is when declaring new toolsets, and it that case it
does not add much information compared to --debug-generators output. So, let's
just kill the feature for now.


[SVN r22927]
2004-05-26 09:57:03 +00:00
Vladimir Prus
bc84dc2847 Change the error message printed when target reference can't be resolved.
Also, don't print backtrace, since this is not necessary and just confuses
users.


[SVN r22926]
2004-05-26 07:26:55 +00:00
Vladimir Prus
d48a0701ae When project-scope 'glob' is called with directory in wildcard, return
absolute paths names.


[SVN r22849]
2004-05-17 09:02:27 +00:00