Darwin, libsanitizer: Adjust minimum supported Darwin version (PR93731).

Message ID 065E227C-EBC4-476C-96AF-BA2AE6BF6AAE@sandoe.co.uk
State New
Headers show
Series
  • Darwin, libsanitizer: Adjust minimum supported Darwin version (PR93731).
Related show

Commit Message

Iain Sandoe March 1, 2020, 2:44 p.m.
Hi,

The current imported libsanitizer code produces kernel panics for
Darwin 11 (macOS 10.7) and is unsupported for earlier versions already.

It is not clear if the current sources are even intended to be supported
on Darwin 11, so this patch causes the default to be build without
sanitizers for Darwin <= 11.

tested on configurations for Darwin8..12
applied to master
thanks
Iain

2020-03-01  Iain Sandoe  <iain@sandoe.co.uk>

	PR sanitizer/93731
	* configure.tgt (x86_64-*-darwin*, i?86-*-darwin*): Enable by
	default only for Darwin versions greater than 12 (macOS 10.8).

Patch

diff --git a/libsanitizer/configure.tgt b/libsanitizer/configure.tgt
index 2d93e19b9cb..5d46990eba4 100644
--- a/libsanitizer/configure.tgt
+++ b/libsanitizer/configure.tgt
@@ -60,7 +60,7 @@  case "${target}" in
 		TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_aarch64.lo
 	fi
 	;;
-  x86_64-*-darwin1[1-9]* | i?86-*-darwin1[1-9]*)
+  x86_64-*-darwin1[2-9]* | i?86-*-darwin1[2-9]*)
 	TSAN_SUPPORTED=no
 	;;
   x86_64-*-solaris2.11* | i?86-*-solaris2.11*)