[zorg] r279597 - always create host-compiler

Chris Matthews via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 23 17:30:15 PDT 2016


Author: cmatthews
Date: Tue Aug 23 19:30:15 2016
New Revision: 279597

URL: http://llvm.org/viewvc/llvm-project?rev=279597&view=rev
Log:
always create host-compiler

My last commit did not properly recreate the host compiler directory.

Modified:
    zorg/trunk/zorg/jenkins/build.py

Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=279597&r1=279596&r2=279597&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Tue Aug 23 19:30:15 2016
@@ -632,10 +632,9 @@ def fetch_compiler():
     urllib.urlretrieve (url, conf.workspace + "/" + local_name)
     print "done."
     print "Decompressing..."
-    if not os.path.exists(conf.workspace + "/host-compiler"):
-        os.mkdir(conf.workspace + "/host-compiler")
-    else:
+    if os.path.exists(conf.workspace + "/host-compiler"):
         shutil.rmtree(conf.workspace + "/host-compiler")
+    os.mkdir(conf.workspace + "/host-compiler")
     run_cmd(conf.workspace + "/host-compiler/", ['tar', 'zxf', "../" + local_name])
     os.unlink(local_name)
     footer()




More information about the llvm-commits mailing list