Skip to content
This repository has been archived by the owner on Jul 3, 2018. It is now read-only.

Commit

Permalink
Bug 1262155 - Add some generic compiler-based conditions to moz.confi…
Browse files Browse the repository at this point in the history
…gure. r=ted

MozReview-Commit-ID: FHlbDPp7Hni
  • Loading branch information
chmanchester committed Sep 21, 2016
1 parent bb8ff60 commit 07b0b7c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions build/moz.configure/headers.configure
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
4 changes: 4 additions & 0 deletions build/moz.configure/toolchain.configure
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 07b0b7c

Please sign in to comment.