From 09bcd2e378b1b3df25cf0692d8013043e4ef0bc3 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Tue, 5 May 2020 14:30:25 -0400 Subject: [PATCH] Fix hipcc for -E -E is for preprocessing only, which should be compile only. This is required by enabling sccache. Change-Id: Ia0a0acb6a04abd03a9cb5b3c13cf7446837f37b4 --- bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/hipcc b/bin/hipcc index f86a5f7fa3..87ac826b3c 100755 --- a/bin/hipcc +++ b/bin/hipcc @@ -422,7 +422,7 @@ foreach $arg (@ARGV) $trimarg = $arg; $trimarg =~ s/^\s+|\s+$//g; # Remive whitespace my $swallowArg = 0; - if ($arg eq '-c' or $arg eq '--genco') { + if ($arg eq '-c' or $arg eq '--genco' or $arg eq '-E') { $compileOnly = 1; $needLDFLAGS = 0; }