Fix hipcc and hip_vector_types.h for windows

Disable linux specific compilation and linking options for windows.

In hip_vector_types.h, hip-clang needs HIP's own implementation for vector types even
on windows. MSVC specific implementation is for building runtime itself, which is compiled
by MSVC.
Αυτή η υποβολή περιλαμβάνεται σε:
Yaxun Sam Liu
2019-02-07 11:07:50 -05:00
γονέας dd5928318f
υποβολή d0fc2d0f99
2 αρχεία άλλαξαν με 16 προσθήκες και 8 διαγραφές
@@ -34,7 +34,7 @@ THE SOFTWARE.
#include "hip/hcc_detail/host_defines.h"
#if !defined(_MSC_VER) || __HIP_DEVICE_COMPILE__
#if !defined(_MSC_VER) || __clang__
#if defined(__clang__)
#define __NATIVE_VECTOR__(n, ...) __attribute__((ext_vector_type(n)))
#elif defined(__GNUC__) // N.B.: GCC does not support .xyzw syntax.