Skip to content

Commit 4766775

Browse files
authored
Merge pull request #5495 from pcc/fix-cross
Fix cross compilation for x86 targets from non-x86
2 parents 5ba2b9e + 6f3691a commit 4766775

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

getarch.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2046,10 +2046,9 @@ int main(int argc, char *argv[]){
20462046
#endif
20472047

20482048

2049-
#ifdef INTEL_AMD
2050-
#ifndef FORCE
2049+
#if defined(INTEL_AMD) && !defined(FORCE)
20512050
get_sse();
2052-
#else
2051+
#elif defined(FORCE_INTEL)
20532052

20542053
sprintf(buffer, "%s", ARCHCONFIG);
20552054

@@ -2079,7 +2078,6 @@ int main(int argc, char *argv[]){
20792078
} else p ++;
20802079
}
20812080
#endif
2082-
#endif
20832081

20842082
#if defined(__BYTE_ORDER__) && __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
20852083
printf("__BYTE_ORDER__=__ORDER_BIG_ENDIAN__\n");

0 commit comments

Comments
 (0)