aboutsummaryrefslogtreecommitdiff
path: root/src/build_settings.cpp
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2025-05-22 20:47:10 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2025-05-22 21:39:35 -0400
commit6c5b96948e827a0b22435c1bb367414c8a187666 (patch)
tree9fed9910602913dede14be482a9c340fd9fe2b4e /src/build_settings.cpp
parent82c9681e2805e58309a057c00d176a34ae74721e (diff)
Enable all sanitizers on FreeBSD
Diffstat (limited to 'src/build_settings.cpp')
-rw-r--r--src/build_settings.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/build_settings.cpp b/src/build_settings.cpp
index 4f573a8ca..9c530df19 100644
--- a/src/build_settings.cpp
+++ b/src/build_settings.cpp
@@ -2303,9 +2303,10 @@ gb_internal bool init_build_paths(String init_filename) {
case TargetOs_windows:
case TargetOs_linux:
case TargetOs_darwin:
+ case TargetOs_freebsd:
break;
default:
- gb_printf_err("-sanitize:address is only supported on windows, linux, and darwin\n");
+ gb_printf_err("-sanitize:address is only supported on Windows, Linux, Darwin, and FreeBSD\n");
return false;
}
}
@@ -2313,12 +2314,10 @@ gb_internal bool init_build_paths(String init_filename) {
if (build_context.sanitizer_flags & SanitizerFlag_Memory) {
switch (build_context.metrics.os) {
case TargetOs_linux:
+ case TargetOs_freebsd:
break;
default:
- gb_printf_err("-sanitize:memory is only supported on linux\n");
- return false;
- }
- if (build_context.metrics.os != TargetOs_linux) {
+ gb_printf_err("-sanitize:memory is only supported on Linux and FreeBSD\n");
return false;
}
}
@@ -2327,9 +2326,10 @@ gb_internal bool init_build_paths(String init_filename) {
switch (build_context.metrics.os) {
case TargetOs_linux:
case TargetOs_darwin:
+ case TargetOs_freebsd:
break;
default:
- gb_printf_err("-sanitize:thread is only supported on linux and darwin\n");
+ gb_printf_err("-sanitize:thread is only supported on Linux, Darwin, and FreeBSD\n");
return false;
}
}