Fix building with -c dbg
Just create separate lists of flags (and corresponding features) for
each compilation mode, instead of trying to be cute with a default that
gets overriden.
Change-Id: Ib9741681030f5b88dcf200f0144156a626bc16aa
Signed-off-by: Brian Silverman <bsilver16384@gmail.com>
diff --git a/WORKSPACE b/WORKSPACE
index 4aaad5b..40cf405 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -161,13 +161,20 @@
"-Wformat=2",
"-Werror",
"-ggdb3",
- "-DAOS_DEBUG=0",
]
llvm_cxxopts = [
"-std=gnu++17",
]
+llvm_opt_copts = [
+ "-DAOS_DEBUG=0",
+]
+
+llvm_fastbuild_copts = [
+ "-DAOS_DEBUG=0",
+]
+
llvm_dbg_copts = [
"-DAOS_DEBUG=1",
]
@@ -193,9 +200,17 @@
},
dbg_copts = {
"linux-x86_64": llvm_dbg_copts,
- "linux-armv7": llvm_cxxopts,
+ "linux-armv7": llvm_dbg_copts,
+ },
+ fastbuild_copts = {
+ "linux-x86_64": llvm_fastbuild_copts,
+ "linux-armv7": llvm_fastbuild_copts,
},
llvm_version = llvm_version,
+ opt_copts = {
+ "linux-x86_64": llvm_opt_copts,
+ "linux-armv7": llvm_opt_copts,
+ },
standard_libraries = {
"linux-x86_64": "libstdc++-10",
"linux-armv7": "libstdc++-10",