summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Swiecki <robert@swiecki.net>2019-03-03 17:14:39 +0100
committerRobert Swiecki <robert@swiecki.net>2019-03-03 17:14:39 +0100
commit71280828c2037a91dc20204cf6f9cfd014cb2963 (patch)
tree18efb746a6115bbbef7fac6921e6d893875cc729
parent2b3f7f41036b6474dcf272bbfa38a246261d34c5 (diff)
downloadhonggfuzz-71280828c2037a91dc20204cf6f9cfd014cb2963.tar.gz
hfuzz-cc: assume gcc-8/9 is used by default
-rw-r--r--hfuzz_cc/hfuzz-cc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/hfuzz_cc/hfuzz-cc.c b/hfuzz_cc/hfuzz-cc.c
index 9c9da493..53bbfce7 100644
--- a/hfuzz_cc/hfuzz-cc.c
+++ b/hfuzz_cc/hfuzz-cc.c
@@ -73,8 +73,8 @@ static bool useM32() {
return false;
}
-static bool useGccGE8() {
- if (getenv("HFUZZ_CC_USE_GCC_GE_8")) {
+static bool useBelowGCC8() {
+ if (getenv("HFUZZ_CC_USE_GCC_BELOW_8")) {
return true;
}
return false;
@@ -279,11 +279,11 @@ static char* getLibHFNetDriverPath() {
static void commonOpts(int* j, char** args) {
args[(*j)++] = getIncPaths();
if (isGCC) {
- if (useGccGE8()) {
- /* gcc-8 offers trace-cmp as well, but it's not that widely used yet */
+ if (useBelowGCC8()) {
+ /* trace-pc is the best that gcc-6/7 currently offers */
args[(*j)++] = "-fsanitize-coverage=trace-pc,trace-cmp";
} else {
- /* trace-pc is the best that gcc-6/7 currently offers */
+ /* gcc-8+ offers trace-cmp as well, but it's not that widely used yet */
args[(*j)++] = "-fsanitize-coverage=trace-pc";
}
} else {