From 011a743668e7cd0b7cf97d27e3bed7d519794aeb Mon Sep 17 00:00:00 2001 From: Dietrich Geisler Date: Fri, 31 Jul 2020 17:51:52 -0400 Subject: 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 --- source/slang/slang-options.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-options.cpp') 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; -- cgit v1.2.3