From 2c69f101dcee74fdfc60131538bf62fd6e8426aa Mon Sep 17 00:00:00 2001 From: Yaxun Sam Liu Date: Tue, 5 Feb 2019 14:27:57 -0500 Subject: [PATCH] Add windows specific compilation options [ROCm/clr commit: 52152368c5f9cecd8e62a1d45e05aa73e0231ac5] --- projects/clr/hipamd/bin/hipcc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/clr/hipamd/bin/hipcc b/projects/clr/hipamd/bin/hipcc index a717a0bf92..54324951a7 100755 --- a/projects/clr/hipamd/bin/hipcc +++ b/projects/clr/hipamd/bin/hipcc @@ -750,6 +750,11 @@ if ($HIP_PLATFORM eq "clang") { $HIPLDFLAGS .= " -lgcc_s -lgcc -lpthread -lm"; } +# Windows specific options +if ($^O eq 'MSWin32' and $HIP_PLATFORM eq "clang") { + $HIPCXXFLAGS .= " -std=c++14 -fms-extensions -fms-compatibility" +} + if ($HIPCC_COMPILE_FLAGS_APPEND) { $HIPCXXFLAGS .= " $HIPCC_COMPILE_FLAGS_APPEND"; }