From 41381e95574e35881b6c6ba4c089dfec087bf369 Mon Sep 17 00:00:00 2001 From: Ioannis Assiouras Date: Thu, 6 Jul 2023 00:08:16 +0100 Subject: [PATCH] SWDEV-407818 - Fixed bug when opening LinkerFile fstream on windows Change-Id: If6f083d9fa83066eb2b20ab24dceaa9df7a2f0a0 [ROCm/clr commit: 791cea44f18f1e7b1274e9f983614b81109a7d00] --- projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp index 217a0d8849..effced6dee 100644 --- a/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp +++ b/projects/clr/hipamd/src/hiprtc/hiprtcInternal.cpp @@ -598,7 +598,7 @@ bool RTCLinkProgram::AddLinkerDataImpl(std::vector& link_data, hiprtcJITIn } bool RTCLinkProgram::AddLinkerFile(std::string file_path, hiprtcJITInputType input_type) { - std::ifstream file_stream{file_path}; + std::ifstream file_stream{file_path, std::ios_base::in | std::ios_base::binary}; if (!file_stream.good()) { return false; }