summarylogtreecommitdiffstats
path: root/use-system-clang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'use-system-clang.patch')
-rw-r--r--use-system-clang.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/use-system-clang.patch b/use-system-clang.patch
new file mode 100644
index 000000000000..ec13b0ba75d2
--- /dev/null
+++ b/use-system-clang.patch
@@ -0,0 +1,13 @@
+--- a/script/bootstrap.py
++++ b/script/bootstrap.py
+@@ -165,8 +165,8 @@ def update_node_modules(dirname, env=None):
+ if env is None:
+ env = os.environ.copy()
+ if PLATFORM == 'linux':
+- # Use prebuilt clang for building native modules.
+- set_clang_env(env)
++ env['CC'] = 'clang'
++ env['CXX'] = 'clang++'
+ env['npm_config_clang'] = '1'
+ with scoped_cwd(dirname):
+ args = [NPM, 'install']