mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
BSD: Fix build with BSD grep.
Thanks to carlocab.
This commit is contained in:
parent
668b1896b3
commit
b9d523965b
@ -335,7 +335,7 @@ ifeq (iOS,$(TARGET_SYS))
|
|||||||
else
|
else
|
||||||
ifeq (,$(findstring LJ_NO_UNWIND 1,$(TARGET_TESTARCH)))
|
ifeq (,$(findstring LJ_NO_UNWIND 1,$(TARGET_TESTARCH)))
|
||||||
# Find out whether the target toolchain always generates unwind tables.
|
# Find out whether the target toolchain always generates unwind tables.
|
||||||
TARGET_TESTUNWIND=$(shell exec 2>/dev/null; echo 'extern void b(void);int a(void){b();return 0;}' | $(TARGET_CC) -c -x c - -o tmpunwind.o && grep -qa -e eh_frame -e __unwind_info tmpunwind.o && echo E; rm -f tmpunwind.o)
|
TARGET_TESTUNWIND=$(shell exec 2>/dev/null; echo 'extern void b(void);int a(void){b();return 0;}' | $(TARGET_CC) -c -x c - -o tmpunwind.o && grep -qU -e eh_frame -e __unwind_info tmpunwind.o && echo E; rm -f tmpunwind.o)
|
||||||
ifneq (,$(findstring E,$(TARGET_TESTUNWIND)))
|
ifneq (,$(findstring E,$(TARGET_TESTUNWIND)))
|
||||||
TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL
|
TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user