diff options
Diffstat (limited to 'source/core')
| -rw-r--r-- | source/core/slang-nvrtc-compiler.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/core/slang-nvrtc-compiler.cpp b/source/core/slang-nvrtc-compiler.cpp index 1bb2669b8..bc7d1f4f6 100644 --- a/source/core/slang-nvrtc-compiler.cpp +++ b/source/core/slang-nvrtc-compiler.cpp @@ -276,7 +276,10 @@ SlangResult NVRTCDownstreamCompiler::compile(const CompileOptions& options, RefP cmdLine.addArg("-I"); cmdLine.addArg(include); } - + + { + cmdLine.addArg("-std=c++14"); + } nvrtcProgram program = nullptr; nvrtcResult res = m_nvrtcCreateProgram(&program, options.sourceContents.getBuffer(), options.sourceContentsPath.getBuffer(), 0, nullptr, nullptr); |
