Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 022121a

Browse files
committed
disable all warnings, add std::filesystem for gcc8
1 parent 028356c commit 022121a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

meson.build

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ deps = [
2121
]
2222

2323
compiler = meson.get_compiler('cpp')
24-
24+
link_args=[]
25+
extra_args=[]
2526

2627
if meson.get_compiler('cpp').get_id() == 'gcc'
27-
extra_args = ['-pedantic','-fpermissive', '-Wno-write-strings', '-Wno-unknown-pragmas']
28+
extra_args = ['-w', '-fpermissive']
29+
release_args = []
2830
suffix = 'x86_64'
31+
if compiler.version().version_compare('<9')
32+
link_args += ['-lstdc++fs']
33+
endif
2934
elif meson.get_compiler('cpp').get_id() == 'msvc'
30-
extra_args = []
3135
endif
3236

3337
pch = 'System/StandardIncludes.h'
@@ -43,7 +47,7 @@ subdir('external')
4347

4448
debug = executable('CCCP_debug', 'Main.cpp',sources, link_with: [luabind_debug, raknet_debug, fmod],
4549
dependencies: [deps], include_directories:[source_inc_dirs, external_inc_dirs],
46-
cpp_args:extra_args, cpp_pch:pch, name_suffix:suffix, override_options:['buildtype=debugoptimized', 'optimization=g'])
50+
cpp_args:extra_args, link_args:link_args, cpp_pch:pch, name_suffix:suffix, override_options:['buildtype=debugoptimized', 'optimization=g'])
4751

4852
release = executable('CCCP', 'Main.cpp', sources, link_with: [luabind, raknet, fmod],
4953
dependencies: [deps], include_directories:[source_inc_dirs, external_inc_dirs],

0 commit comments

Comments
 (0)