diff options
author | Nikolai Vavilov <vvnicholas@gmail.com> | 2014-12-23 22:15:46 +0300 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-12-23 21:27:24 +0300 |
commit | 0f3d7e6032052b4a02e04dabdc02104206d1825e (patch) | |
tree | 89801e8c04f14ebde7879c7d3e4966bca2a31170 /configure | |
parent | c77a494e4ac7e20a466fa0cafaa258fdda810423 (diff) |
configure: remove compiler detection
The GCC version is no longer relevant since only 4.8 and newer are
supported. It's probably safe to assume clang on mac since V8 does
so too.
PR-URL: https://github.com/iojs/io.js/pull/205
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/configure b/configure index 128aa27348f..f863118d4e6 100755 --- a/configure +++ b/configure @@ -398,22 +398,6 @@ def host_arch_win(): return matchup.get(arch, 'ia32') -def compiler_version(): - try: - proc = subprocess.Popen(shlex.split(CC) + ['--version'], - stdout=subprocess.PIPE) - except WindowsError: - return (0, False) - - is_clang = 'clang' in proc.communicate()[0].split('\n')[0] - - proc = subprocess.Popen(shlex.split(CC) + ['-dumpversion'], - stdout=subprocess.PIPE) - version = tuple(map(int, proc.communicate()[0].split('.'))) - - return (version, is_clang) - - def configure_arm(o): if options.arm_float_abi: arm_float_abi = options.arm_float_abi @@ -455,12 +439,6 @@ def configure_node(o): if target_arch == 'arm': configure_arm(o) - cc_version, is_clang = compiler_version() - o['variables']['clang'] = 1 if is_clang else 0 - - if not is_clang and cc_version != 0: - o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1] - if flavor in ('solaris', 'mac', 'linux', 'freebsd'): use_dtrace = not options.without_dtrace # Don't enable by default on linux and freebsd |