scons: fix first-run clean problem #2112
This commit is contained in:
parent
861f2677e0
commit
6eea010c6a
1 changed files with 6 additions and 0 deletions
|
@ -493,6 +493,12 @@ elif HELP_REQUESTED:
|
|||
# to ensure config gets skipped when help is requested
|
||||
preconfigured = True
|
||||
|
||||
# need no-op for clean on fresh checkout
|
||||
# https://github.com/mapnik/mapnik/issues/2112
|
||||
if ('-c' in command_line_args) or ('--clean' in command_line_args) and not os.path.exists(SCONS_CONFIGURE_CACHE):
|
||||
print 'all good: nothing to clean'
|
||||
Exit(0)
|
||||
|
||||
# initially populate environment with defaults and any possible custom arguments
|
||||
opts.Update(env)
|
||||
|
||||
|
|
Loading…
Reference in a new issue