From 094472b32d259004134d33c3ee16b56e8a0270be 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 [ROCm/clr commit: 48d89d670e68627e40e241ad40c1df51e3a756b7] --- projects/clr/hipamd/bin/hipcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index f86a5f7fa3..87ac826b3c 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/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; }