Martin Blanchard
6b517475f5
get-unquoted: Add test case for new get_unquoted() method
7 years ago
Nirbheek Chauhan
b3c70f495b
interpreter: Always flatten when unholding arrays
...
Otherwise we might end up with wrapper holders in the Build object and
pickling will then fail, defeating the purpose of the holder objects.
Closes https://github.com/mesonbuild/meson/issues/2211
7 years ago
Nirbheek Chauhan
4a9c31025c
tests/common/48: Don't read newline
...
To avoid platform-specific differences in git settings.
7 years ago
Nirbheek Chauhan
db199b06e6
Add a test for the custom target incdirs change
...
https://github.com/mesonbuild/meson/pull/2291
7 years ago
Nirbheek Chauhan
aff981a6b0
Fix regression in test definitions
...
Caused by #2236 . Also add a test for this.
7 years ago
Daniel Stone
e1ffae0580
Add Compiler.get_supported_arguments()
...
Add a helper for the common pattern of:
args_to_use = []
foreach arg : candidate_args
if cc.has_argument(arg)
args_to_use += arg
endif
endforeach
Replaced with:
args_to_use = cc.get_supported_arguments(candidate_args)
7 years ago
Jussi Pakkanen
e02f1dc809
Remove PHONY because Windows and OSX file systems are crap. Closes #2199 .
7 years ago
Peter Harris
ee34f454ca
Fix detection of clang "optimization arguments"
...
In version 3.6.0, clang added -Wignored-optimization-argument. Without
setting this flag to -Werror, "ignored optimization arguments" such as
(for example) -fpeel-loops, are accepted but warned about, leading to
noisy builds if meson thinks the flag is supported.
See also #755
7 years ago
Jussi Pakkanen
50fb7d37ab
Make all functionality invokable via the main Meson binary,
...
which can be a Windows .exe file.
7 years ago
Elliott Sales de Andrade
c09586462c
Add variables to test to prove linkage is correct.
7 years ago
Elliott Sales de Andrade
48580ac8a3
Add broken test case from #1494 .
...
Also, check a file with a subdirectory and extract_objects().
7 years ago
Nirbheek Chauhan
e191488cdf
tests/common/159: Disable phony test
...
Breaks on case-insensitive HFS+ on Travis
https://travis-ci.org/mesonbuild/meson/jobs/264468097
And on Appveyor:
https://ci.appveyor.com/project/jpakkane/meson/build/3344/job/k996o8g57qf68ryb
7 years ago
Nirbheek Chauhan
306cac70a6
tests/common/159: Disable b_coverage=true
...
Setting it seems to cause it to be set on all later tests, which causes
a lot of failures:
https://travis-ci.org/mesonbuild/meson/jobs/264468097
https://travis-ci.org/mesonbuild/meson/jobs/264468093
7 years ago
Nirbheek Chauhan
0c518a8077
Add a test for dirs with reserved target names
...
And for dirs with the same name as run_target()s
Reproduces https://github.com/mesonbuild/meson/issues/1644
7 years ago
Elliott Sales de Andrade
5cb1d00537
Allow excluding files from `install_subdir`
...
The install_subdir command now accepts a new `exclude` keyword argument
that allows specified files to be excluded from the installed
subdirectory.
7 years ago
Elliott Sales de Andrade
edb260b4f4
Move MPI tests into frameworks.
...
This prevents them being cross-compiled (which wouldn't work without MPI
cross-compilers) and disables Windows builds (will need to be fixed
later.)
7 years ago
Elliott Sales de Andrade
4cbfb9a08d
Add support for MS-MPI.
7 years ago
Elliott Sales de Andrade
5a7e06a64f
Add MPI dependency.
...
We prefer pkg-config files, though only OpenMPI supplies them.
Otherwise, check environment variables and search for wrappers and ask
them for what to do.
7 years ago
Jussi Pakkanen
58bd1e83b4
Renamed test dir to avoid duplicate numbers.
7 years ago
Jussi Pakkanen
61a05f26e3
Add option to disable implicit include directories. Closes #2139 .
7 years ago
Jussi Pakkanen
cad6bf32f1
Can pass all target kwargs through to SIMD invocations. Closes #2151 .
7 years ago
Dylan Baker
6d939c6737
Consider link_whole_targets when determining linker
...
Currently if a target uses link_whole, and one of those archives is a
C++, but the files for the target are C linking will fail when the C
linker attempts to link the C++ files. This patches add
link_whole_targets to the list of languages in the target so the correct
linker will be selected.
7 years ago
Alan Coopersmith
5bdd75940b
Fix ppoll() test to work on non-glibc platforms
7 years ago
Patrick Griffis
ece4ce8872
Fix test() accepting configure files for exe
7 years ago
Jussi Pakkanen
a572ebd2a1
Convert man inputs to Files so you can install_man the output of configure_file. Closes #2135 .
7 years ago
Rico Tzschichholz
ccde05f0ac
Tag functions in asm properly.
7 years ago
Nirbheek Chauhan
b3d048e93a
CompilerArgs: Put start/end-group around shared libs too
...
Closes https://github.com/mesonbuild/meson/issues/2096
7 years ago
Patrick Griffis
67f0a1a44d
Fix run_target() accepting ConfigureFile for command
7 years ago
Jussi Pakkanen
8c39007e41
Renamed test dirs to remove duplicated numbers.
7 years ago
Jon Turney
8ebdbfb0f6
Use full_path() rather than adding current_build_dir() as rpath in test common/154
7 years ago
Jon Turney
3fa3922cea
Support implibs for executables on Windows
...
Add a boolean 'implib' kwarg to executable(). If true, it is permitted to
use the returned build target object in link_with:
On platforms where this makes sense (e.g. Windows), an implib is generated
for the executable and used when linking. Otherwise, it has no effect.
(Rather than checking if it is a StaticLibrary or SharedLibary, BuildTarget
subclasses gain the is_linkable_target method to test if they can appear in
link_with:)
Also install any executable implib in a similar way to a shared library
implib, i.e. placing the implib in the appropriate place
Add tests of:
- a shared_module containing a reference to a symbol which is known (at link
time) to be provided by the executable
- trying to link with non-implib executables (should fail)
- installing the implib
(This last one needs a little enhancement of the installed file checking as
this is the first install test we have which needs to work with either
MSVC-style or GCC-style implib filenames)
7 years ago
FredericHamel
6f4e5e96d8
Allow test to depend on executable target in cross build. ( #2007 )
...
* Add a crossbuild case in 'test case/common/1 trivial/meson.build'
* Add native flags for crossbuild tests.
7 years ago
Jussi Pakkanen
fc23d9d0f2
Turned SIMD into an unstable module.
7 years ago
Jussi Pakkanen
ce77fb89b9
Renamed test case number to avoid dupes.
7 years ago
Jussi Pakkanen
be92a6a3a6
Renamed test dir.
7 years ago
Jussi Pakkanen
f78cf53141
Created merge_from method for ConfigurationData.
7 years ago
Jussi Pakkanen
6119beed4d
Create a new configuration data object and return it as the result.
7 years ago
Jussi Pakkanen
fe86c9c399
Do not use AVX on OSX since we can't detect it reliably at runtime and some CI machines do not seem to have it.
7 years ago
Jussi Pakkanen
ef9e03b847
Hardcode processor features on OSX because it ships a broken __builtin_cpu_supports.
7 years ago
Jussi Pakkanen
f6f5644212
Fix MMX on 32 bit x86.
7 years ago
Jussi Pakkanen
2181d8f2ab
A few fixes for OSX and VS2010.
7 years ago
Jussi Pakkanen
181510bd6e
Fix checks on MinGW and VS2010.
7 years ago
Jussi Pakkanen
8396c4f3e6
Added VS support to simd detector.
7 years ago
Jussi Pakkanen
fefbb296f7
Fix building with Clang on Raspbian.
7 years ago
Jussi Pakkanen
16ec3f0e19
Fix a few OSX "features".
7 years ago
Jussi Pakkanen
d304aac504
Created simd module.
7 years ago
Jussi Pakkanen
57729e5a78
Added NEON support.
7 years ago
Jussi Pakkanen
dbe028cc17
Add AVX2.
7 years ago
Jussi Pakkanen
71ffbd5b73
Add AVX support.
7 years ago
Jussi Pakkanen
fc68e0c63a
Add SSE4.2 support.
7 years ago