mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1262155 - Add some generic compiler-based conditions to moz.configure. r=ted
MozReview-Commit-ID: FHlbDPp7Hni
This commit is contained in:
parent
bb8ff6012c
commit
07b0b7c518
@ -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')
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user