[llvm-commits] [hlvm] r38090 - /hlvm/trunk/build/check.py

Reid Spencer reid at x10sys.com
Sat Jul 7 16:59:45 PDT 2007


Author: reid
Date: Sat Jul  7 18:59:45 2007
New Revision: 38090

URL: http://llvm.org/viewvc/llvm-project?rev=38090&view=rev
Log:
Make sure the test directory is created in the build directory so the site.exp
file has a place to be created.

Modified:
    hlvm/trunk/build/check.py

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

==============================================================================
--- hlvm/trunk/build/check.py (original)
+++ hlvm/trunk/build/check.py Sat Jul  7 18:59:45 2007
@@ -1,7 +1,9 @@
 from SCons.Environment import Environment as Environment
+from SCons.Defaults import Mkdir
 import re,fileinput,os,glob
 from string import join as sjoin
 from os.path import join as pjoin
+from os.path import exists
 
 def getTestCases(dir,env):
   context = pjoin(env['AbsSrcRoot'],'test',dir)
@@ -14,6 +16,8 @@
 
 def SiteExpAction(target,source,env):
   tgtpath = pjoin(env['AbsObjRoot'],'test')
+  if not exists(tgtpath):
+    env.Execute(Mkdir(tgtpath))
   outf = open(pjoin(tgtpath,'site.exp'),"w")
   outf.write('## these variables are automatically generated by make ##\n')
   outf.write('# Do not edit here.  If you wish to override these values\n')





More information about the llvm-commits mailing list