From 203b5570fea4ce7bd3195df72848496a261e2745 Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Thu, 28 Oct 2021 10:54:18 -0400 Subject: Hotfix/osx fix (#1994) * #include an absolute path didn't work - because paths were taken to always be relative. * OSX 10.15 produced error/warning for not using ref. --- source/compiler-core/slang-nvrtc-compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') diff --git a/source/compiler-core/slang-nvrtc-compiler.cpp b/source/compiler-core/slang-nvrtc-compiler.cpp index f5014acbc..11ef746f6 100644 --- a/source/compiler-core/slang-nvrtc-compiler.cpp +++ b/source/compiler-core/slang-nvrtc-compiler.cpp @@ -484,7 +484,7 @@ static SlangResult _findNVRTC(NVRTCPathVisitor& visitor) StringSlicePool pool(StringSlicePool::Style::Empty); // We are going to search the paths in order - for (const auto path : paths) + for (const auto& path : paths) { // PATH can have the same path multiple times. If we have already searched this path, we don't need to again if (!pool.has(path)) -- cgit v1.2.3