1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-28 20:23:51 +00:00

Use system getopt in capture utility on unix.

This fixes header clash between getopt.h and unistd.h (required for unlink),
which prevented LTO on macos.
This commit is contained in:
Bartosz Taudul 2021-01-27 00:32:38 +01:00
parent e3ae2c077f
commit 9892407ff0
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ LIBS += $(shell pkg-config --libs capstone) -lpthread
PROJECT := capture
IMAGE := $(PROJECT)-$(BUILD)
FILTER :=
FILTER := ../../../getopt/getopt.c
include ../../../common/src-from-vcxproj.mk
include ../../../common/unix.mk

View File

@ -19,7 +19,10 @@
#include "../../server/TracyPrint.hpp"
#include "../../server/TracyStackFrames.hpp"
#include "../../server/TracyWorker.hpp"
#include "../../getopt/getopt.h"
#ifdef _WIN32
# include "../../getopt/getopt.h"
#endif
bool disconnect = false;