mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
Meson: Add arguments for both C and C++ compilation
C++ compilation is used on Windows
This commit is contained in:
parent
6989158f4c
commit
cc51930a32
1 changed files with 3 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ if cc.get_id() != 'msvc'
|
|||
endif
|
||||
|
||||
supported_cflags = cc.get_supported_arguments(cflags)
|
||||
add_project_arguments(supported_cflags, language: 'c')
|
||||
add_project_arguments(supported_cflags, language: ['c', 'cpp'])
|
||||
|
||||
# We only wish to enable attribute(warn_unused_result) if we can prevent
|
||||
# gcc from generating thousands of warnings about the misapplication of the
|
||||
|
|
@ -95,10 +95,10 @@ if cc.get_id() == 'msvc'
|
|||
add_project_arguments('/wd4244', '/wd4146',
|
||||
# Don't warn about double -> float truncation
|
||||
'/wd4305',
|
||||
language : 'c')
|
||||
language : ['c', 'cpp'])
|
||||
endif
|
||||
|
||||
add_project_arguments('-D_GNU_SOURCE', language: 'c')
|
||||
add_project_arguments('-D_GNU_SOURCE', language: ['c', 'cpp'])
|
||||
|
||||
pkgmod = import('pkgconfig')
|
||||
python3 = import('python').find_installation()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue