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