File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3
3
4
4
extern gotoblas_t gotoblas_POWER6 ;
5
5
extern gotoblas_t gotoblas_POWER8 ;
6
- #if (!defined __GNUC__ ) || ( __GNUC__ >= 6 )
6
+ #if (( !defined __GNUC__ ) || ( __GNUC__ >= 6 )) || defined( __clang__ )
7
7
extern gotoblas_t gotoblas_POWER9 ;
8
8
#endif
9
9
#ifdef HAVE_P10_SUPPORT
@@ -27,7 +27,7 @@ char *gotoblas_corename(void) {
27
27
if (gotoblas == & gotoblas_POWER6 ) return corename [1 ];
28
28
#endif
29
29
if (gotoblas == & gotoblas_POWER8 ) return corename [2 ];
30
- #if (!defined __GNUC__ ) || ( __GNUC__ >= 6 )
30
+ #if (( !defined __GNUC__ ) || ( __GNUC__ >= 6 )) || defined( __clang__ )
31
31
if (gotoblas == & gotoblas_POWER9 ) return corename [3 ];
32
32
#endif
33
33
#ifdef HAVE_P10_SUPPORT
@@ -240,7 +240,7 @@ static gotoblas_t *get_coretype(void) {
240
240
#endif
241
241
if (__builtin_cpu_is ("power8" ))
242
242
return & gotoblas_POWER8 ;
243
- #if (!defined __GNUC__ ) || ( __GNUC__ >= 6 )
243
+ #if (( !defined __GNUC__ ) || ( __GNUC__ >= 6 )) || defined( __clang__ )
244
244
if (__builtin_cpu_is ("power9" ))
245
245
return & gotoblas_POWER9 ;
246
246
#endif
@@ -281,7 +281,7 @@ static gotoblas_t *force_coretype(char * coretype) {
281
281
case 1 : return (& gotoblas_POWER6 );
282
282
#endif
283
283
case 2 : return (& gotoblas_POWER8 );
284
- #if (!defined __GNUC__ ) || ( __GNUC__ >= 6 )
284
+ #if (( !defined __GNUC__ ) || ( __GNUC__ >= 6 )) || defined( __clang__ )
285
285
case 3 : return (& gotoblas_POWER9 );
286
286
#endif
287
287
#ifdef HAVE_P10_SUPPORT
You can’t perform that action at this time.
0 commit comments