diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2020-06-18 16:39:06 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-18 13:39:06 -0700 |
| commit | 5952e3b3d7f505a7e6d71ecd0793911224f5bac3 (patch) | |
| tree | aa2fe85ae3ac6af4db98654489592120ab1a1f17 /examples/cpu-hello-world/main.cpp | |
| parent | dfbe3cfcdb308cdb0f89cb2844fb3aba96cfcaec (diff) | |
Prelude is associated with SourceLanguage (#1398)
* Associate a downstream compiler for prelude lookup even if output is source.
* Remove LanguageStyle and just use SourceLanguage instread.
* Added set/getPrelude.
Made prelude work on source language.
* Fix typo in method name replacement.
get/SetPrelude get/setLanguagePrelude
* Fix issue because of method name change.
* Remove getPreludeDownstreamCompilerForTarget
Diffstat (limited to 'examples/cpu-hello-world/main.cpp')
| -rw-r--r-- | examples/cpu-hello-world/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cpu-hello-world/main.cpp b/examples/cpu-hello-world/main.cpp index 4302e6069..8f22aac6d 100644 --- a/examples/cpu-hello-world/main.cpp +++ b/examples/cpu-hello-world/main.cpp @@ -61,8 +61,8 @@ static SlangResult _innerMain(int argc, char** argv) // directory called 'slang-cpp-prelude.h'. // // We need to tell slang either the contents of the prelude, or suitable include/s - // that will work. The actual API call to set the prelude is `setDownstreamCompilerPrelude` - // and this just sets for a specific backend a bit of text placed before generated code. + // that will work. The actual API call to set the prelude is `setPrelude` + // and this just sets for a specific language a bit of text placed before generated code. // // Most downstream C++ compilers work on files. In that case slang may generate temporary // files that contain the generated code. Typically the generated files will not be in the |
