commit:     d7df0a350748f1380c737c20da66cabf7af15a64
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 27 18:07:37 2017 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Wed Dec 27 18:07:37 2017 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=d7df0a35

Disable USE=sanitize on bare metal targets

USE=sanitize needs explicit support from OS to implement sanitizers.
Currently those are implemented for Linux and *BSDs.

Noticed by |Jeroen| on #gentoo-arm when building:
    crossdev -t arm-none-eabi

Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 crossdev | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crossdev b/crossdev
index 9d614a2..1cd59fb 100755
--- a/crossdev
+++ b/crossdev
@@ -323,6 +323,8 @@ parse_target() {
                        KPKG="[none]"
                        STAGE_DEFAULT=${STAGE_LIBC}
                        GUSE+=" cxx -openmp" #489798
+                       # asan needs OS support to implement sanitizers
+                       GUSE+=" -sanitize"
                        MULTILIB_USE="yes" #407275
                        WITH_DEF_HEADERS="no"
                        ;;

Reply via email to