diff options
| author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-30 23:56:09 +0300 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-08-30 23:56:09 +0300 |
| commit | 24ea586d1e8a4dbb65edc175a9ba677b776ac3de (patch) | |
| tree | d3bf5da9199dd88b0e1f77533b86679328feaebd /test cases | |
| parent | 845eda2938f67cae3b7bccf813b994441a2c8a5d (diff) | |
| download | meson-24ea586d1e8a4dbb65edc175a9ba677b776ac3de.tar.gz | |
More introspection.
Diffstat (limited to 'test cases')
| -rw-r--r-- | test cases/common/39 tryrun/meson.build | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/test cases/common/39 tryrun/meson.build b/test cases/common/39 tryrun/meson.build index a45d3e23f..78847c518 100644 --- a/test cases/common/39 tryrun/meson.build +++ b/test cases/common/39 tryrun/meson.build @@ -1,6 +1,15 @@ project('tryrun', 'c') -cc = meson.get_compiler('c') +# Complex to exercise all code paths. +if meson.is_cross_build() + if meson.has_exe_wrapper() + cc = meson.get_compiler('c', native : false) + else + cc = meson.get_compiler('c', native : true) + endif +else + cc = meson.get_compiler('c') +endif ok_code = '''#include<stdio.h> int main(int argc, char **argv) { |
