diff options
| -rw-r--r-- | source/slang-core-module/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | source/slang-core-module/slang-embedded-core-module-source.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/slang-core-module/CMakeLists.txt b/source/slang-core-module/CMakeLists.txt index d7f29be0a..461908c3a 100644 --- a/source/slang-core-module/CMakeLists.txt +++ b/source/slang-core-module/CMakeLists.txt @@ -69,8 +69,6 @@ set(core_module_source_common_args generated EXPLICIT_SOURCE ./slang-embedded-core-module-source.cpp - EXTRA_COMPILE_DEFINITIONS_PRIVATE - SLANG_EMBED_CORE_MODULE_SOURCE EXPORT_MACRO_PREFIX SLANG EXPORT_TYPE_AS diff --git a/source/slang-core-module/slang-embedded-core-module-source.cpp b/source/slang-core-module/slang-embedded-core-module-source.cpp index 9dc324d2a..65bfed844 100644 --- a/source/slang-core-module/slang-embedded-core-module-source.cpp +++ b/source/slang-core-module/slang-embedded-core-module-source.cpp @@ -394,6 +394,7 @@ ComPtr<ISlangBlob> Session::getAutodiffLibraryCode() ComPtr<ISlangBlob> Session::getGLSLLibraryCode() { +#if SLANG_EMBED_CORE_MODULE_SOURCE if (!glslLibraryCode) { const String path = getCoreModulePath(); @@ -401,6 +402,7 @@ ComPtr<ISlangBlob> Session::getGLSLLibraryCode() #include "glsl.meta.slang.h" glslLibraryCode = StringBlob::moveCreate(sb); } +#endif return glslLibraryCode; } } // namespace Slang |
