diff options
author | Simon McVittie <smcv@debian.org> | 2023-08-05 11:35:56 +0100 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-08-06 02:32:25 -0400 |
commit | 432317bc6bbfa594bbaf99e13ccb840db3903568 (patch) | |
tree | dc1138d177a0016d8a53f7f645cca41fd595953d /mesonbuild/scripts/test_loaded_modules.py | |
parent | 78337653fce90d6745d2ce46eaba9d25ab9e18d2 (diff) | |
download | meson-432317bc6bbfa594bbaf99e13ccb840db3903568.zip meson-432317bc6bbfa594bbaf99e13ccb840db3903568.tar.gz meson-432317bc6bbfa594bbaf99e13ccb840db3903568.tar.bz2 |
tests: Pass a mock C compiler to detect_cpu(), detect_cpu_family()
In some cases the desired result can be different if there are no
compilers at all. The expectations here are based on there being at
least one compiler, so reflect that by providing one; a later test
enhancement can cover the case where there are no compilers provided.
As a result of the mock any_compiler_has_define(), all that matters
will be the distinction between an empty or non-empty dict: the compiler
object itself is unused.
Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'mesonbuild/scripts/test_loaded_modules.py')
0 files changed, 0 insertions, 0 deletions