[zorg] r322333 - Adding the ability to specify an environment variable for a URL from which the bisection tool fetches its compilers.

A Bergen via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 11 16:04:42 PST 2018


Author: sudofortune
Date: Thu Jan 11 16:04:42 2018
New Revision: 322333

URL: http://llvm.org/viewvc/llvm-project?rev=322333&view=rev
Log:
Adding the ability to specify an environment variable for a URL from which the bisection tool fetches its compilers.

Differential Revision: https://reviews.llvm.org/D41961

Modified:
    zorg/trunk/llvmbisect/llvmlab/gcs.py

Modified: zorg/trunk/llvmbisect/llvmlab/gcs.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/llvmbisect/llvmlab/gcs.py?rev=322333&r1=322332&r2=322333&view=diff
==============================================================================
--- zorg/trunk/llvmbisect/llvmlab/gcs.py (original)
+++ zorg/trunk/llvmbisect/llvmlab/gcs.py Thu Jan 11 16:04:42 2018
@@ -6,7 +6,10 @@ import requests
 import urllib3
 
 # Root URL to use for our queries.
-GCS = "https://www.googleapis.com/storage/v1/"
+DEFAULT_GCS = "https://www.googleapis.com/storage/v1/"
+
+# Specify a different root URL if compilers are hosted elsewhere.
+GCS = os.getenv("GCS_SERVER", DEFAULT_GCS)
 
 DEFAULT_BUCKET = "llvm-build-artifacts"
 




More information about the llvm-commits mailing list