From 8e10332ff1912975b139dfba6ec5c51f51ec1c1a Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 8 Sep 2022 01:31:29 -0400 Subject: [PATCH] Revert "SWDEV-339488 - Address HIPRT tests failure with spaces in the include path" This reverts commit 89355fb586cd5bb57d02eafa230b4f65ee758be0. Change-Id: I10f91ec0205cd4276b141aade5728fdc20030195 --- hipamd/src/hiprtc/hiprtcInternal.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/hipamd/src/hiprtc/hiprtcInternal.cpp b/hipamd/src/hiprtc/hiprtcInternal.cpp index 87e247fc6d..816a1ca24f 100644 --- a/hipamd/src/hiprtc/hiprtcInternal.cpp +++ b/hipamd/src/hiprtc/hiprtcInternal.cpp @@ -209,17 +209,6 @@ bool RTCCompileProgram::transformOptions() { i = "--offload-arch=" + val; continue; } - - // Allow spaces after -I as delimiter to match nvrtc, "-I test" will be converted to "-Itest" - // Paths starting with leading space are not supported. eg: " test" - if (i.find("-I") == 0) { - const std::string kWhiteSpace = " \n\r\t\f\v"; - std::string include_path = i.substr(2); - size_t start = include_path.find_first_not_of(kWhiteSpace); - if (start != std::string::npos) i = "-I" + include_path.substr(start); - continue; - } - if (i == "--save-temps") { settings_.dumpISA = true; continue;