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 126ae15

Browse filesBrowse files
codebytereruyadorno
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 a32fa30 commit 126ae15
Copy full SHA for 126ae15

File tree

Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+10
-0
lines changed
Open diff view settings
Collapse file

‎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
@@ -130,6 +130,12 @@
130130
default=None,
131131
help='use the prefix to look for pre-installed headers')
132132

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+
133139
parser.add_argument('--dest-os',
134140
action='store',
135141
dest='dest_os',
@@ -1405,6 +1411,10 @@ def configure_node(o):
14051411
o['variables']['target_arch'] = target_arch
14061412
o['variables']['node_byteorder'] = sys.byteorder
14071413

1414+
# Allow overriding the compiler - needed by embedders.
1415+
if options.use_clang:
1416+
o['variables']['clang'] = 1
1417+
14081418
cross_compiling = (options.cross_compiling
14091419
if options.cross_compiling is not None
14101420
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.