forked from tudinfse/fex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
environment.py
53 lines (43 loc) · 1.53 KB
/
environment.py
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
49
50
51
52
53
"""
Example of environment definitions
"""
from core.environment import Environment
import os
CURR_PATH = os.path.dirname(os.path.abspath(__file__))
class GenericEnvironment(Environment):
forced_variables = {}
updated_variables = {
'LD_LIBRARY_PATH': '/usr/local/lib64/:/usr/local/lib/:%s/bin/libs/' % CURR_PATH,
}
default_variables = {
'PROJ_ROOT': CURR_PATH,
'DATA_PATH': CURR_PATH + '/data/',
'BIN_PATH': CURR_PATH + '/bin/'
}
debug_variables = {}
class ASanEnvironment(Environment):
default_variables = {
'ASAN_OPTIONS': 'verbosity=0:' +
'detect_leaks=false:' +
'print_summary=true:' +
'halt_on_error=true:' +
'poison_heap=true:' +
'alloc_dealloc_mismatch=0:' +
'new_delete_type_mismatch=0',
}
only_build_variables = {
"ASAN_OPTIONS": 'verbosity=0:' +
'detect_leaks=false:' +
'print_summary=false:' +
'halt_on_error=false:' +
'poison_heap=false',
}
debug_variables = {
"ASAN_OPTIONS": 'verbosity=1:' +
'detect_leaks=false:' +
'print_summary=false:' +
'halt_on_error=false:' +
'poison_heap=false:' +
'alloc_dealloc_mismatch=0:' +
'new_delete_type_mismatch=0',
}