Skip to content

Commit

Permalink
switch to thunk_gen-1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Oct 12, 2024
1 parent 30a6ed7 commit 58d3eba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 21 deletions.
3 changes: 2 additions & 1 deletion fdpp/farptr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,8 @@ class SymMembT : public MembBase<T, P, M, O> {
#define __ASMREF(f) f.get_ref()
#define __ASMADDR(v) __##v.get_addr()
#define __ASMCALL(f) AsmCSym f
#define __ASYM(x) x.get_sym()
#define __ASYM(x) __##x.get_sym()
#define __ASYM_L(x) __##x.get_sym()
#define ASMREF(t) AsmRef<t>
#if CLANG_VER < 14
#define DUMMY_MARK(p, n) \
Expand Down
10 changes: 7 additions & 3 deletions fdpp/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,18 @@ ifeq ($(filter clean,$(MAKECMDGOALS)),)
$(error thunk_gen not installed)
endif
else
ifeq ($(filter clean,$(MAKECMDGOALS)),)
$(shell pkg-config --atleast-version=1.2 thunk_gen)
ifneq ($(.SHELLSTATUS),0)
$(error thunk_gen is too old, 1.2 is needed)
endif
endif
TFLAGS = -a 2 -p 2
PDHDR = $(SRC)/proto.h
GLOB_ASM = $(SRC)/glob_asm.h
include $(TGMK)
endif

glob_asmdefs.h: $(SRC)/glob_asm.h
$(srcdir)/parsers/mkasmdefs.sh $< >$@

INSTALL ?= install
install: $(ALL)
$(INSTALL) -d $(DESTDIR)$(LIBDIR)/fdpp
Expand Down
2 changes: 1 addition & 1 deletion fdpp/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ project('libfdpp', ['c', 'cpp'], default_options: ['cpp_std=c++20'],
version: '0.1', meson_version: '>= 1.3.0')

MF = meson.current_source_dir() / 'parsers/mkfar.sh'
MA = meson.current_source_dir() / 'parsers/mkasmdefs.sh'
PD = meson.current_source_dir() / 'parsers/parse_decls.sh'
tg = dependency('thunk_gen')
TG = tg.get_variable(pkgconfig: 'binary')
MA = tg.get_variable(pkgconfig: 'mkadscript')
TGS = tg.get_variable(pkgconfig: 'tgscript')
TGM4 = tg.get_variable(pkgconfig: 'm4script')
TFLAGS = ['-a', '2', '-p', '2']
Expand Down
16 changes: 0 additions & 16 deletions fdpp/parsers/mkasmdefs.sh

This file was deleted.

0 comments on commit 58d3eba

Please sign in to comment.