summaryrefslogtreecommitdiffstats
path: root/source/compiler-core/slang-nvrtc-compiler.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2021-10-28 10:54:18 -0400
committerGitHub <noreply@github.com>2021-10-28 10:54:18 -0400
commit203b5570fea4ce7bd3195df72848496a261e2745 (patch)
tree8f5de50786af6d9f6b522c9634269d54e84e199a /source/compiler-core/slang-nvrtc-compiler.cpp
parent8f6450cefe8aa780c406a80477e13f990d1b7a78 (diff)
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.
Diffstat (limited to 'source/compiler-core/slang-nvrtc-compiler.cpp')
-rw-r--r--source/compiler-core/slang-nvrtc-compiler.cpp2
1 files changed, 1 insertions, 1 deletions
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))