You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 15, 2020. It is now read-only.
print('''Node.js configure error: No acceptable C compiler found!
667
+
error('''No acceptable C compiler found!
663
668
664
-
Please make sure you have a C compiler installed on your system and/or
665
-
consider adjusting the CC environment variable if you installed
666
-
it in a non-standard prefix.
667
-
''')
668
-
sys.exit()
669
+
Please make sure you have a C compiler installed on your system and/or
670
+
consider adjusting the CC environment variable if you installed
671
+
it in a non-standard prefix.''')
669
672
670
673
match = re.search(regexp, proc.communicate()[1])
671
674
672
675
if match:
673
676
return match.group(2)
674
677
else:
675
-
return0
678
+
return'0'
676
679
677
680
def get_nasm_version(asm):
678
681
try:
@@ -681,17 +684,17 @@ def get_nasm_version(asm):
681
684
stdout=subprocess.PIPE)
682
685
except OSError:
683
686
warn('''No acceptable ASM compiler found!
684
-
Please make sure you have installed nasm from http://www.nasm.us
687
+
Please make sure you have installed NASM from http://www.nasm.us
685
688
and refer BUILDING.md.''')
686
-
return0
689
+
return'0'
687
690
688
691
match = re.match(r"NASM version ([2-9]\.[0-9][0-9]+)",
689
692
proc.communicate()[0])
690
693
691
694
if match:
692
695
return match.group(1)
693
696
else:
694
-
return0
697
+
return'0'
695
698
696
699
def get_llvm_version(cc):
697
700
return get_version_helper(
@@ -709,21 +712,19 @@ def get_gas_version(cc):
709
712
stdin=subprocess.PIPE, stderr=subprocess.PIPE,
710
713
stdout=subprocess.PIPE)
711
714
except OSError:
712
-
print('''Node.js configure error: No acceptable C compiler found!
715
+
error('''No acceptable C compiler found!
713
716
714
-
Please make sure you have a C compiler installed on your system and/or
715
-
consider adjusting the CC environment variable if you installed
716
-
it in a non-standard prefix.
717
-
''')
718
-
sys.exit()
717
+
Please make sure you have a C compiler installed on your system and/or
718
+
consider adjusting the CC environment variable if you installed
719
+
it in a non-standard prefix.''')
719
720
720
721
match = re.match(r"GNU assembler version ([2-9]\.[0-9]+)",
721
722
proc.communicate()[1])
722
723
723
724
if match:
724
725
return match.group(1)
725
726
else:
726
-
return0
727
+
return'0'
727
728
728
729
# Note: Apple clang self-reports as clang 4.2.0 and gcc 4.2.1. It passes
729
730
# the version check more by accident than anything else but a more rigorous
@@ -777,13 +778,11 @@ def cc_macros(cc=None):
777
778
stdout=subprocess.PIPE,
778
779
stderr=subprocess.PIPE)
779
780
except OSError:
780
-
print('''Node.js configure error: No acceptable C compiler found!
781
+
error('''No acceptable C compiler found!
781
782
782
-
Please make sure you have a C compiler installed on your system and/or
783
-
consider adjusting the CC environment variable if you installed
784
-
it in a non-standard prefix.
785
-
''')
786
-
sys.exit()
783
+
Please make sure you have a C compiler installed on your system and/or
784
+
consider adjusting the CC environment variable if you installed
0 commit comments