Bug 1262155 - Add some generic compiler-based conditions to moz.configure. r=ted

MozReview-Commit-ID: FHlbDPp7Hni
This commit is contained in:
Chris Manchester 2016-09-21 12:04:08 -07:00
parent bb8ff6012c
commit 07b0b7c518
2 changed files with 4 additions and 3 deletions

View File

@ -10,9 +10,6 @@ have_inttypes = check_header('inttypes.h')
set_config('HAVE_INTTYPES_H', have_inttypes)
# Checks for headers relevant to non-windows systems.
non_msvc_compiler = depends(c_compiler)(lambda info: info.type != 'msvc')
building_linux = depends(target)(lambda target: target.kernel == 'Linux')
have_malloc = check_header('malloc.h')

View File

@ -783,6 +783,10 @@ host_cxx_compiler = compiler('C++', host, c_compiler=host_c_compiler,
other_compiler=cxx_compiler,
other_c_compiler=c_compiler)
# Generic compiler-based conditions.
non_msvc_compiler = depends(c_compiler)(lambda info: info.type != 'msvc')
building_with_gcc = depends(c_compiler)(lambda info: info.type == 'gcc')
include('compile-checks.configure')
@depends(have_64_bit,