diff options
| author | Dietrich Geisler <dag368@cornell.edu> | 2020-07-31 17:51:52 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-31 14:51:52 -0700 |
| commit | 011a743668e7cd0b7cf97d27e3bed7d519794aeb (patch) | |
| tree | 49cf484df958aa705ff910631e8f732a6f0a57b9 /source/slang/slang-options.cpp | |
| parent | 4549597709e29b85b5f95503f4f2258c16db12be (diff) | |
Binary for Heterogeneous Example (#1467)
* Binary Heterogeneous Example
This PR introduces the ability to insert the binary of a non-CPU target
by using the -heterogeneous flag. Specifically, this PR updates the
emitting logic to produce a variable of name `__[name_of_entryPoint]`
when the heterogeneous flag is present.
* Prelude path fix
Co-authored-by: Tim Foley <tfoleyNV@users.noreply.github.com>
Diffstat (limited to 'source/slang/slang-options.cpp')
| -rw-r--r-- | source/slang/slang-options.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index 6b4d5adf2..5da87bde6 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -664,6 +664,10 @@ struct OptionsParser rawEntryPoints.add(rawEntryPoint); } + else if (argStr == "-heterogeneous") + { + requestImpl->getLinkage()->m_heterogeneous = true; + } else if (argStr == "-lang") { String name; |
