mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +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:
parent
e3ae2c077f
commit
9892407ff0
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user