@@ -21,13 +21,17 @@ deps = [
21
21
]
22
22
23
23
compiler = meson .get_compiler(' cpp' )
24
-
24
+ link_args= []
25
+ extra_args= []
25
26
26
27
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 = []
28
30
suffix = ' x86_64'
31
+ if compiler.version().version_compare(' <9' )
32
+ link_args += [' -lstdc++fs' ]
33
+ endif
29
34
elif meson .get_compiler(' cpp' ).get_id() == ' msvc'
30
- extra_args = []
31
35
endif
32
36
33
37
pch = ' System/StandardIncludes.h'
@@ -43,7 +47,7 @@ subdir('external')
43
47
44
48
debug = executable (' CCCP_debug' , ' Main.cpp' ,sources, link_with : [luabind_debug, raknet_debug, fmod],
45
49
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' ])
47
51
48
52
release = executable (' CCCP' , ' Main.cpp' , sources, link_with : [luabind, raknet, fmod],
49
53
dependencies : [deps], include_directories :[source_inc_dirs, external_inc_dirs],
0 commit comments