diff options
Diffstat (limited to 'source/slang-stdlib')
| -rw-r--r-- | source/slang-stdlib/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | source/slang-stdlib/slang-embedded-stdlib.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/slang-stdlib/CMakeLists.txt b/source/slang-stdlib/CMakeLists.txt index a6d646cf3..e7fed354a 100644 --- a/source/slang-stdlib/CMakeLists.txt +++ b/source/slang-stdlib/CMakeLists.txt @@ -19,7 +19,7 @@ set(stdlib_generated_header add_custom_command( OUTPUT ${stdlib_generated_header} COMMAND - slang-bootstrap -archive-type riff-lz4 -save-stdlib-bin-source + slang-bootstrap -archive-type riff-lz4 -save-core-module-bin-source ${stdlib_generated_header} DEPENDS slang-bootstrap VERBATIM diff --git a/source/slang-stdlib/slang-embedded-stdlib.cpp b/source/slang-stdlib/slang-embedded-stdlib.cpp index 87107fa50..83e4a8c70 100644 --- a/source/slang-stdlib/slang-embedded-stdlib.cpp +++ b/source/slang-stdlib/slang-embedded-stdlib.cpp @@ -4,21 +4,21 @@ #ifdef SLANG_EMBED_STDLIB -static const uint8_t g_stdLib[] = +static const uint8_t g_coreModule[] = { # include "slang-stdlib-generated.h" }; -static Slang::StaticBlob g_stdLibBlob((const void*)g_stdLib, sizeof(g_stdLib)); +static Slang::StaticBlob g_coreModuleBlob((const void*)g_coreModule, sizeof(g_coreModule)); -SLANG_API ISlangBlob* slang_getEmbeddedStdLib() +SLANG_API ISlangBlob* slang_getEmbeddedCoreModule() { - return &g_stdLibBlob; + return &g_coreModuleBlob; } #else -SLANG_API ISlangBlob* slang_getEmbeddedStdLib() +SLANG_API ISlangBlob* slang_getEmbeddedCoreModule() { return nullptr; } |
