| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
fixes #2834
|
|
|
|
|
|
|
|
|
|
|
| |
Otherwise we will try to use the objc compiler when linking projects
with both objc and C++.
Technically we should use the objc++ linker when doing this, but on
most (all?) systems the objc++ linker is `c++`, which is the same
as the C++ linker.
Closes https://github.com/mesonbuild/meson/issues/2468
|
| |
|
| |
|
|\
| |
| | |
Add more version information to compiler
|
| |
| |
| |
| | |
Add full version to gnu and icc C compiler.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
See issue #2762
Adds full_version to class Compiler. If set full_version will be printed
additionally.
Added support for CCompiler and CPPCompiler
Added support for gcc/g++, clang/clang++, icc.
|
| | |
|
| |
| |
| |
| |
| | |
When set, NDEBUG will be automatically defined for for release builds but
not for other build types.
|
|/
|
|
|
| |
Use LC_ALL=C in CCompiler.get_library_dirs to fix wrong results with non
English locales.
|
| |
|
|
|
|
|
| |
Haiku has pthreads, but they are part of the standard C library, and do
not need either special compiler or linker flags.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
We can't know if the .lib is a static or import library, but that's
a problem in general too. The only way to figure out if a specific
file is an import or a static library is to dump its symbols and check
if it starts with __imp or not.
Even then, some libs are hybrid import and static, i.e., they contain
references to DLLs for some symbols and also provide implementations
for other symbols so this is a difficult problem.
Closes https://github.com/mesonbuild/meson/issues/2659
|
|\
| |
| | |
Fix many things have have been slightly broken in OSX
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
As the Vala compiler does not define thread_flags() and
thread_link_flags(), depending on threads in any capacity will cause Meson to
fail.
Fixes #2720.
|
| | |
|
| | |
|
|/ |
|
|\
| |
| | |
Several fixes to pkg-config dependencies and the pkg-config module (try 3)
|
| |
| |
| |
| |
| |
| | |
We can now specify the library type we want to search for, and whether
we want to prefer static libraries over shared ones or the other way
around. This functionality is not exposed to build files yet.
|
|/ |
|
| |
|
|
|
|
| |
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
|
|
|
|
|
|
|
| |
Auto detection was based on parsing gcc's output so we have to
ensure that it is always 'C'.
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
|
| |
|
| |
|
| |
|
|\
| |
| | |
Fix pcap dependency, str.strip() now takes an argument, add cc.get_return_value()
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This method accepts a single function that takes no arguments and
returns a single value which can be a value that can be cast to
a 64-bit signed integer, or a string, and returns that value.
Mostly useful for running foolib_version() functions that return the
currently-available version of libraries.
|
| |
| |
| |
| |
| | |
This only touches newlines, spaces, and (occaisionally) commas. Anything
else is left for another commit.
|
| |
| |
| |
| | |
Signed-off-by: Alexis Jeandet <alexis.jeandet@member.fsf.org>
|
| | |
|
|/
|
|
|
|
|
|
|
| |
Of course D compilers have different flags to set some important
D-specific settings. This adds a simple method to change these flags in
a compiler-agnostic way in Meson.
This replaces the previous `unittest_args` method with a more generic
variant.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
CCache requires this flag when building with precompiled headers.
Without it, the preprocessor fails and CCache fallbacks to running the
real compiler.
Users still need to set 'sloppiness' to 'pch_defines,time_macros' in
their ccache.conf file for CCache to cache builds that use precompiled
headers. See the CCache manual for more info:
https://ccache.samba.org/manual.html#_precompiled_headers
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
In addition to filtering libs out while generating the command-line, we
must also filter them out in find_library() otherwise these libs will be
detected as "found" on Windows with MSVC.
Closes https://github.com/mesonbuild/meson/issues/1509
|
|
|
|
| |
Closes https://github.com/mesonbuild/meson/issues/2096
|