Fix builds under other configurations
Change-Id: Ice6008b644b8a9d4879c007b760ba90b031ec511
diff --git a/build_tests/tcmalloc.cc b/build_tests/tcmalloc.cc
index 323ee58..eb74a65 100644
--- a/build_tests/tcmalloc.cc
+++ b/build_tests/tcmalloc.cc
@@ -1,3 +1,3 @@
#include <stdlib.h>
-int main() { malloc(500000); }
+int main() { void *big_chunk __attribute__((unused)) = malloc(500000); }
diff --git a/third_party/gperftools/BUILD b/third_party/gperftools/BUILD
index 51953b4..65d9b1b 100644
--- a/third_party/gperftools/BUILD
+++ b/third_party/gperftools/BUILD
@@ -231,7 +231,7 @@
':tcmalloc',
],
copts = common_copts,
- size = 'small',
+ size = 'medium',
)
cc_test(
diff --git a/tools/build_rules/fortran.bzl b/tools/build_rules/fortran.bzl
index ed586f7..c67884a 100644
--- a/tools/build_rules/fortran.bzl
+++ b/tools/build_rules/fortran.bzl
@@ -22,7 +22,8 @@
'-fmacro-backtrace-limit=0']
for flag in cmd:
- if flag not in exclude_flags:
+ if flag not in exclude_flags and not (flag.startswith('-fsanitize') or
+ flag.startswith('-fno-sanitize')):
filtered_cmd.append(flag)
ctx.action(