Skip to content

Commit 710b879

Browse files
committed
Add warning about non-virtual destructors to cpp compiler
1 parent e8f0a5a commit 710b879

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

meson.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
project('libsass', 'c', 'cpp', version: '3.6.4', default_options: ['cpp_std=c++11'])
2-
1+
project('libsass', 'c', 'cpp', version: '3.6.4', meson_version: '>=0.48', default_options: ['c_std=c11','cpp_std=c++11'])
2+
cpp = meson.get_compiler('cpp')
33
if target_machine.system() == 'windows'
4-
add_project_arguments('-D_WIN32', language: 'cpp')
4+
add_project_arguments('-D_WIN32', cpp.get_supported_arguments('-Wno-non-virtual-dtor'), language: 'cpp')
55
endif
66

77
deps = [

0 commit comments

Comments
 (0)