mirror of
https://github.com/herumi/xbyak
synced 2024-11-20 16:06:14 -07:00
use gcc instead of dpkg for portability
This commit is contained in:
parent
5e9a9b96f5
commit
8c64bbbc31
2 changed files with 13 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
TARGET = make_nm normalize_prefix bad_address misc cvt_test cvt_test32 noexception misc32
|
||||
XBYAK_INC=../xbyak/xbyak.h
|
||||
UNAME_S=$(shell uname -s)
|
||||
ifeq ($(shell dpkg --print-architecture),x32)
|
||||
ifeq ($(shell ./detect_x32),x32)
|
||||
X32=1
|
||||
endif
|
||||
BIT=32
|
||||
|
@ -98,7 +98,10 @@ ifeq ($(BIT),64)
|
|||
./test_avx512.sh 64
|
||||
endif
|
||||
|
||||
test:
|
||||
detect_x32: detect_x32.c
|
||||
$(CC) $< -o $@
|
||||
|
||||
test: detect_x32
|
||||
$(MAKE) test_nm
|
||||
$(MAKE) test_avx
|
||||
$(MAKE) test_avx512
|
||||
|
|
8
test/detect_x32.c
Normal file
8
test/detect_x32.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
#if defined(__x86_64__) && defined(__ILP32__)
|
||||
puts("x32");
|
||||
#endif
|
||||
}
|
Loading…
Reference in a new issue