Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Gritz <lg@larrygritz.com>
  • Loading branch information
lgritz committed Jan 16, 2025
1 parent a98fd28 commit 1ea68ef
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/liboslcomp/oslcomp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,11 @@ OSLCompilerImpl::write_dependency_file(string_view filename)
// Special behavior for CI on Windows: remove the directory paths
// for the dependencies, or else it won't match the reference
// output.
std::string cwd = OIIO::Filesystem::current_path() + "/";
auto d = OIIO::Strutil::replace(dep, "\\\\", "/", true);
dep = ustring(OIIO::Strutil::replace(d, cwd, ""));
using OIIO::Strutil::replace;
std::string cwd = replace(OIIO::Filesystem::current_path() + "/",
"/", "\\\\");
auto d = replace(dep, "\\\\", "\\", true);
dep = ustring(replace(d, cwd, ""));
OSL::print(depfile, " \\\n ({})", cwd);
#endif
OSL::print(depfile, " \\\n {}", dep);
Expand Down

0 comments on commit 1ea68ef

Please sign in to comment.