From 52152368c5f9cecd8e62a1d45e05aa73e0231ac5 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 --- hipamd/bin/hipcc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hipamd/bin/hipcc b/hipamd/bin/hipcc index a717a0bf92..54324951a7 100755 --- a/hipamd/bin/hipcc +++ b/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"; }