We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 585f7bc commit 3380af0Copy full SHA for 3380af0
configure.py
@@ -131,6 +131,12 @@
131
default=None,
132
help='use the prefix to look for pre-installed headers')
133
134
+parser.add_argument('--use_clang',
135
+ action='store_true',
136
+ dest='use_clang',
137
+ default=None,
138
+ help='use clang instead of gcc')
139
+
140
parser.add_argument('--dest-os',
141
action='store',
142
dest='dest_os',
@@ -1407,6 +1413,10 @@ def configure_node(o):
1407
1413
o['variables']['target_arch'] = target_arch
1408
1414
o['variables']['node_byteorder'] = sys.byteorder
1409
1415
1416
+ # Allow overriding the compiler - needed by embedders.
1417
+ if options.use_clang:
1418
+ o['variables']['clang'] = 1
1419
1410
1420
cross_compiling = (options.cross_compiling
1411
1421
if options.cross_compiling is not None
1412
1422
else target_arch != host_arch)
0 commit comments