Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bc92a96

Browse filesBrowse files
codebyteremarco-ippolito
authored andcommitted
build: allow overriding clang usage
PR-URL: #56016 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Richard Lau <rlau@redhat.com>
1 parent 7a1365b commit bc92a96
Copy full SHA for bc92a96

File tree

1 file changed

+10
-0
lines changed
Filter options

1 file changed

+10
-0
lines changed

‎configure.py

Copy file name to clipboardExpand all lines: configure.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@
128128
default=None,
129129
help='use the prefix to look for pre-installed headers')
130130

131+
parser.add_argument('--use_clang',
132+
action='store_true',
133+
dest='use_clang',
134+
default=None,
135+
help='use clang instead of gcc')
136+
131137
parser.add_argument('--dest-os',
132138
action='store',
133139
dest='dest_os',
@@ -1358,6 +1364,10 @@ def configure_node(o):
13581364
o['variables']['target_arch'] = target_arch
13591365
o['variables']['node_byteorder'] = sys.byteorder
13601366

1367+
# Allow overriding the compiler - needed by embedders.
1368+
if options.use_clang:
1369+
o['variables']['clang'] = 1
1370+
13611371
cross_compiling = (options.cross_compiling
13621372
if options.cross_compiling is not None
13631373
else target_arch != host_arch)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.