-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmeson.build
48 lines (38 loc) · 963 Bytes
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
project('riddle',
'cpp',
default_options : ['cpp_std=gnu++17'])
riddle_cpp_args = [
'-Wall',
'-Wextra',
'-Wconversion',
'-Wcast-align',
'-Wunused',
'-Wno-missing-braces',
'-Wno-missing-field-initializers',
'-Wno-sign-conversion',
]
riddle_c_args = []
riddle_link_args = []
if get_option('always-sanitize-address') or get_option('buildtype') == 'debug'
warning('Compiling with address sanitizer. Performance may be affected.')
flags = [ '-fsanitize=address' ]
riddle_cpp_args += flags
riddle_c_args += flags
riddle_link_args += flags
endif
fmt_dep = dependency('fmt', fallback : ['fmt', 'fmt_dep'])
subdir('common')
subdir('lexer')
subdir('ast')
subdir('parser')
subdir('san')
subdir('code_generator')
if get_option('build-tests')
subdir('tests')
endif
if get_option('build-demos')
subdir('demo')
endif
if get_option('build-compiler')
subdir('riddle')
endif