add a --fullclean option to fix errors (from Doxin)
This commit is contained in:
parent
a5c1a08d2c
commit
13309379f9
14
SConscript
14
SConscript
@ -88,6 +88,8 @@ AddOption('--snapshot-id',dest="snapshot-id",default=False,help="Snapshot build
|
||||
AddOption('--stable',dest="stable",default=True,help="Non snapshot build")
|
||||
AddOption('--aao', dest="everythingAtOnce", action='store_true', default=False, help="Compile the whole game without generating intermediate objects (very slow), enable this when using compilers like clang or mscc that don't support -fkeep-inline-functions")
|
||||
|
||||
AddOption('--fullclean',dest="justwork",action='store_true',default=False,help="for when nothing else works. Deletes all sconscript temporary files.")
|
||||
|
||||
# using one of these commandline options is compulsory
|
||||
|
||||
AddOption('--win',dest="win",action='store_true',default=False,help="Windows platform target.")
|
||||
@ -101,6 +103,18 @@ AddOption('--rpi',dest="rpi",action='store_true',default=False,help="Raspbain pl
|
||||
|
||||
# the gist of the compiling rules are defined here
|
||||
|
||||
|
||||
if(GetOption("justwork")):
|
||||
import shutil
|
||||
try:
|
||||
shutil.rmtree("../.sconf_temp/")
|
||||
except:
|
||||
print "couldn't remove .sconf_temp"
|
||||
try:
|
||||
os.remove("../.sconsign.dblite")
|
||||
except:
|
||||
print "couldn't remove .sconsign.dblite"
|
||||
|
||||
# platform selection
|
||||
# ==================
|
||||
|
||||
|
Reference in New Issue
Block a user