There was an error while loading. Please reload this page.
1 parent a32fa30 commit 126ae15Copy full SHA for 126ae15
1 file changed
configure.py
@@ -130,6 +130,12 @@
130
default=None,
131
help='use the prefix to look for pre-installed headers')
132
133
+parser.add_argument('--use_clang',
134
+action='store_true',
135
+dest='use_clang',
136
+default=None,
137
+help='use clang instead of gcc')
138
+
139
parser.add_argument('--dest-os',
140
action='store',
141
dest='dest_os',
@@ -1405,6 +1411,10 @@ def configure_node(o):
1405
1411
o['variables']['target_arch'] =target_arch
1406
1412
o['variables']['node_byteorder'] =sys.byteorder
1407
1413
1414
+# Allow overriding the compiler - needed by embedders.
1415
+ifoptions.use_clang:
1416
+o['variables']['clang'] =1
1417
1408
1418
cross_compiling= (options.cross_compiling
1409
1419
ifoptions.cross_compilingisnotNone
1410
1420
elsetarget_arch!=host_arch)
0 commit comments