-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkspace.lua
More file actions
85 lines (73 loc) · 2.17 KB
/
workspace.lua
File metadata and controls
85 lines (73 loc) · 2.17 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
workspace (WORKSPACE_NAME)
startproject (START_PROJECT)
-- Platforms & Build Configurations
configurations {
"Debug",
"Release",
"RelWithDebInfo",
}
platforms { "amd64" }
filter "platforms:amd64"
architecture "x86_64"
filter {}
filter { "files:**.c or files:**.h" }
cdialect "C11"
filter { "files:**.cpp or files:**.hpp" }
cppdialect "C++17"
filter {}
-- Compiler Flags
-- Debug Configuration Across Multiple Platforms
filter { "configurations:Debug*" }
defines { "_DEBUG" }
optimize "Off"
symbols "On"
buildoptions {
"-g",
"-gcolumn-info"
}
filter { "configurations:Debug*", "toolset:*gcc*" }
buildoptions { "-ggdb" }
filter { "configurations:Debug*", "toolset:*clang*" }
buildoptions { "-glldb" }
filter {}
-- RelWithDebInfo Configuration
filter { "configurations:RelWithDebInfo*" }
defines { "_DEBUG" }
optimize "On"
symbols "On"
buildoptions {
"-g",
"-gcolumn-info"
}
filter { "configurations:RelWithDebInfo*", "toolset:*gcc*" }
buildoptions { "-gcc" }
filter { "configurations:RelWithDebInfo*", "toolset:*clang*" }
buildoptions { "-glldb" }
filter {}
-- Release Configuration
filter { "configurations:Release*" }
defines { "NDEBUG" }
optimize "On"
symbols "Off"
filter {}
buildoptions {
"-fno-exceptions",
"-Wshadow",
"-Wall",
"-Wextra",
"-Werror",
"-Wno-unsafe-buffer-usage",
"-fvisibility=hidden"
}
-- Specify Address Sanitizer for Debug/RelWithDebInfo
-- Integration with ASan & UBSan is possible but takes tinkering - not for now.
-- filter { "configurations:Debug* or configurations:RelWithDebInfo*", "toolset:gcc or toolset:clang" }
-- buildoptions {
-- "-fsanitize=address",
-- "-fsanitize=undefined",
-- }
-- linkoptions {
-- "-fsanitize=address",
-- "-fsanitize=undefined",
-- }
-- filter {}