Skip to content

Commit

Permalink
Update meson.build
Browse files Browse the repository at this point in the history
  • Loading branch information
dgsga committed Feb 29, 2024
1 parent 032741f commit 913080a
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/afpd/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,6 @@ afpdtestlib = static_library(
test_dtrace_input = []
test_objs = [afpdtestlib.extract_all_objects(recursive: false)]

# As of 2/2024:
# The afp_dtrace.o file is necessary for dtrace support on Solaris, and on recent
# versions of systemtap. (Older systemtap releases just produce an empty
# file, but that's okay.) However, macOS's dtrace doesn't use it and doesn't
# even recognize the -G option. So, build afp_dtrace.o except on macOS.
# This might need adjustment as other platforms add dtrace support.
#
# On at least linux we don't actually need to pass in all the objects, but
# at least on FreeBSD and Solaris we have to.

if fs.exists(meson.current_build_dir() / 'afp_dtrace.o')
run_command(
'rm',
'-f',
meson.current_build_dir() / 'afp_dtrace.o',
check: true,
)
endif

afpdtest = executable(
'afpdtest',
afpd_dtrace_input,
Expand Down

0 comments on commit 913080a

Please sign in to comment.