build_clang: Use local scratch directory. draft
authorRalph Giles <>
Mon, 05 Jun 2017 11:21:43 -0700
changeset 604493 8aa3af14f878d69153b2e88c71d8f95781abbebd
parent 604492 55154d13ab44c08e5497d4adb8621ad3bc5e7448
child 604494 5590b32d4a36ac1bf07a8b2de89ecfe765d977fb
push id67095
push dateThu, 06 Jul 2017 01:27:02 +0000
build_clang: Use local scratch directory. Hack to build outside the normal docker container. MozReview-Commit-ID: eE7WZuzTVf
--- a/build/build-clang/
+++ b/build/build-clang/
@@ -342,17 +342,17 @@ def prune_final_dir_for_clang_tidy(final
 if __name__ == "__main__":
     # The directories end up in the debug info, so the easy way of getting
     # a reproducible build is to run it in a know absolute directory.
     # We use a directory in /builds/slave because the mozilla infrastructure
     # cleans it up automatically.
-    base_dir = "/builds/slave/moz-toolchain"
+    base_dir = os.path.join(os.getcwd(), 'moz-toolchain')
     if is_windows():
         # TODO: Because Windows taskcluster builds are run with distinct
         # user IDs for each job, we can't store things in some globally
         # accessible directory: one job will run, checkout LLVM to that
         # directory, and then if another job runs, the new user won't be
         # able to access the previously-checked out code--or be able to
         # delete it.  So on Windows, we build in the task-specific home
         # directory; we will eventually add -fdebug-prefix-map options