Fix bootstrapping bug.
authorDavid Anderson <danderson@mozilla.com>
Thu Jul 26 00:18:37 2012 -0700 (2012-07-26)
changeset 10104f3450662f4
parent 100 3278e19f064d
child 102 6726ff987b9b
Fix bootstrapping bug.
src/AMBuild.shell
     1.1 --- a/src/AMBuild.shell	Thu Jul 26 00:16:53 2012 -0700
     1.2 +++ b/src/AMBuild.shell	Thu Jul 26 00:18:37 2012 -0700
     1.3 @@ -1,5 +1,6 @@
     1.4  # vim: set ts=2 sw=2 tw=99 noet ft=python: 
     1.5  import os
     1.6 +import os.path
     1.7  import ambuild.osutil as osutil
     1.8  
     1.9  compiler = KE.DefaultCompiler()
    1.10 @@ -18,7 +19,8 @@
    1.11  	'main.cpp'
    1.12  	]
    1.13  
    1.14 -binary.RelinkIfNewer(library)
    1.15 +if os.path.exists(library):
    1.16 +  binary.RelinkIfNewer(library)
    1.17  binary.AddSourceFiles('src', files)
    1.18  binary.SendToJob()
    1.19