mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
build: make CC command in host check configurable
This commit is contained in:
1 parent
c97b4f1971
commit
707863c1fb
1 file changed
+1
-2
@@ -147,8 +147,7 @@ def pkg_config(pkg):
|
|||||||
def host_arch():
|
def host_arch():
|
||||||
"""Host architecture. One of arm, ia32 or x64."""
|
"""Host architecture. One of arm, ia32 or x64."""
|
||||||
|
|
||||||
# TODO better/configurable way of getting the proper 'cc' command?
|
cc = [os.environ.get('CC', 'cc')]
|
||||||
cc = [ 'cc' ]
|
|
||||||
|
|
||||||
cmd = cc + [ '-dM', '-E', '-' ]
|
cmd = cc + [ '-dM', '-E', '-' ]
|
||||||
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
p = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|||||||
Reference in new issue
Block a user