diff options
| author | Steven Knight <knight@baldmt.com> | 2002-08-31 04:58:09 (GMT) |
|---|---|---|
| committer | Steven Knight <knight@baldmt.com> | 2002-08-31 04:58:09 (GMT) |
| commit | da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07 (patch) | |
| tree | 09923409e3e511b6d18e0323209f34cda29c2ca7 /src | |
| parent | d8b4ea0c9adfb77244f488c338d290c863f2b8b1 (diff) | |
| download | SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.zip SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.tar.gz SCons-da5fa78a78e4fe36ab5f6dacb1e7938cd1bdbe07.tar.bz2 | |
Provide a message if there are no command-line targets specified and no Default() targets.
Diffstat (limited to 'src')
| -rw-r--r-- | src/CHANGES.txt | 3 | ||||
| -rw-r--r-- | src/engine/SCons/Script/__init__.py | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/CHANGES.txt b/src/CHANGES.txt index 56e86c3..257cac3 100644 --- a/src/CHANGES.txt +++ b/src/CHANGES.txt @@ -26,6 +26,9 @@ RELEASE 0.09 - - Suport the Intel Fortran Compiler (ifl.exe). + - Supply an error message if there are no command-line or + Default() targets specified. + From Anthony Roach: - Fixed use of command lines with spaces in their arguments, diff --git a/src/engine/SCons/Script/__init__.py b/src/engine/SCons/Script/__init__.py index bce17ba..7c499da 100644 --- a/src/engine/SCons/Script/__init__.py +++ b/src/engine/SCons/Script/__init__.py @@ -980,6 +980,10 @@ def _main(): if not targets: targets = SCons.Script.SConscript.default_targets + if not targets: + sys.stderr.write("scons: *** No targets specified and no Default() targets found. Stop.\n") + sys.exit(2) + def Entry(x, top = target_top): if isinstance(x, SCons.Node.Node): node = x |
