build: print error message if no compiler found
Make the configure script warn the user about the lack of an acceptable C compiler on the system.
This commit is contained in:
parent
9f3c639a9c
commit
792d9a921d
18
configure
vendored
18
configure
vendored
@ -154,10 +154,20 @@ def pkg_config(pkg):
|
|||||||
def host_arch_cc():
|
def host_arch_cc():
|
||||||
"""Host architecture check using the CC command."""
|
"""Host architecture check using the CC command."""
|
||||||
|
|
||||||
p = subprocess.Popen(CC.split() + ['-dM', '-E', '-'],
|
try:
|
||||||
stdin=subprocess.PIPE,
|
p = subprocess.Popen(CC.split() + ['-dM', '-E', '-'],
|
||||||
stdout=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stdout=subprocess.PIPE,
|
||||||
|
stderr=subprocess.PIPE)
|
||||||
|
except OSError:
|
||||||
|
print '''Node.js configure error: No acceptable C compiler found!
|
||||||
|
|
||||||
|
Please make sure you have a C compiler installed on your system and/or
|
||||||
|
consider adjusting the CC environment variable if you installed
|
||||||
|
it in a non-standard prefix.
|
||||||
|
'''
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
p.stdin.write('\n')
|
p.stdin.write('\n')
|
||||||
out = p.communicate()[0]
|
out = p.communicate()[0]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user