summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2011-04-06 00:09:24 -0700
committerJosh Haberman <jhaberman@gmail.com>2011-04-06 00:09:24 -0700
commit91a7da602db23319abada5bd0f7fc739f978c941 (patch)
tree2709b87c8d5f16a78d92e9643a520e37fdbbd71d /Makefile
parentd0dee34a7f636af5b9ba5490024e24697224af56 (diff)
Disable GDB JIT interface on OS X.
OS X doesn't use ELF, so our little trick doesn't work there.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4a2b80d..08327f0 100644
--- a/Makefile
+++ b/Makefile
@@ -166,11 +166,11 @@ src/upb_def.lo: src/upb_def.c
$(E) 'CC -fPIC' $<
$(Q) $(CC) $(CFLAGS) $(CPPFLAGS) $(DEF_OPT) -c -o $@ $< -fPIC
-src/upb_decoder_x86.h: src/jit_debug_elf_file.h
src/upb_decoder_x86.h: src/upb_decoder_x86.dasc
$(E) DYNASM $<
$(Q) lua dynasm/dynasm.lua src/upb_decoder_x86.dasc > src/upb_decoder_x86.h
+ifneq ($(shell uname), Darwin)
src/jit_debug_elf_file.o: src/jit_debug_elf_file.s
$(E) GAS $<
$(Q) gcc -c src/jit_debug_elf_file.s -o src/jit_debug_elf_file.o
@@ -178,6 +178,8 @@ src/jit_debug_elf_file.o: src/jit_debug_elf_file.s
src/jit_debug_elf_file.h: src/jit_debug_elf_file.o
$(E) XXD $<
$(Q) xxd -i src/jit_debug_elf_file.o > src/jit_debug_elf_file.h
+src/upb_decoder_x86.h: src/jit_debug_elf_file.h
+endif
# Function to expand a wildcard pattern recursively.
rwildcard=$(strip $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2)$(filter $(subst *,%,$2),$d)))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback