about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2021-03-09 21:05:58 +0100
committerAndrea Fioraldi <andreafioraldi@gmail.com>2021-03-09 21:05:58 +0100
commit40ba8814b381d7e090717df8197f5957a5013ca9 (patch)
tree43576bd3d616dd2a98f669b129aebc32c0ebc800
parenta0a917ad87b066fc96ba7e69e5aa837b3837d67c (diff)
downloadafl++-40ba8814b381d7e090717df8197f5957a5013ca9.tar.gz
better CROSS detection
-rwxr-xr-xqemu_mode/build_qemu_support.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh
index 0101b733..a88cb54f 100755
--- a/qemu_mode/build_qemu_support.sh
+++ b/qemu_mode/build_qemu_support.sh
@@ -385,6 +385,7 @@ if [ "$ORIG_CROSS" = "" ]; then
     fi
     if ! command -v "$CROSS" > /dev/null && [ "`uname -m`" = "x86_64" ]
     then # set -m32
+      test "$CC" = "" && CC="gcc"
       CROSS="$CC -m32"
     fi
   fi