SWDEV-283267 - HIPRTC Pass COMGR correct msvc flags

On Windows, to enable comgr and hiprtc to enable compilation,
provide the correct target flags. Otherwise comgr cannot
figure out which platform to compile for.

Change-Id: I6426e518c8d695342cb49df0ebdeac0437da83df


[ROCm/clr commit: 58246c78d7]
这个提交包含在:
Aaron Enye Shi
2021-07-13 12:29:59 -04:00
提交者 Jatin Chaudhary
父节点 ac37a1a3ca
当前提交 a620f5b973
+5
查看文件
@@ -295,6 +295,11 @@ hiprtcResult hiprtcCompileProgram(hiprtcProgram prog, int numOptions, const char
oarr.push_back("-include hiprtc_runtime.h");
oarr.push_back("-std=c++14");
oarr.push_back("-nogpuinc");
#ifdef _WIN32
oarr.push_back("-target x86_64-pc-windows-msvc");
oarr.push_back("-fms-extensions");
oarr.push_back("-fms-compatibility");
#endif
#endif
transformOptions(oarr, program);