[llvm-commits] [hlvm] r38168 - /hlvm/trunk/build/hlvm.py

Reid Spencer reid at x10sys.com
Sat Jul 7 17:00:40 PDT 2007


Author: reid
Date: Sat Jul  7 19:00:40 2007
New Revision: 38168

URL: http://llvm.org/viewvc/llvm-project?rev=38168&view=rev
Log:
Fix the options cache to fall back to looking in .options_cache

Modified:
    hlvm/trunk/build/hlvm.py

Modified: hlvm/trunk/build/hlvm.py
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/build/hlvm.py?rev=38168&r1=38167&r2=38168&view=diff

==============================================================================
--- hlvm/trunk/build/hlvm.py (original)
+++ hlvm/trunk/build/hlvm.py Sat Jul  7 19:00:40 2007
@@ -7,6 +7,7 @@
 from SCons.Environment import Environment as Environment
 from configure import ConfigureHLVM as ConfigureHLVM
 from os.path import join as pjoin
+from os.path import exists as exists
 from string import join as sjoin
 from string import replace as strrepl
 import glob
@@ -85,7 +86,10 @@
   else:
     buildname = 'default'
   options_file = '.' + buildname + '_options'
-  opts = Options(options_file)
+  if not exists(options_file):
+    opts = Options('.options_cache')
+  else:
+    opts = Options(options_file)
   opts.AddOptions(
     BoolOption('assertions','Include assertions in the code',1),
     BoolOption('debug','Build with debug options turned on',1),





More information about the llvm-commits mailing list