30a629ca21
* Tracy profiler integration. * Cleanup URHO3D_TRACY_PROFILING macro. * Fix comment of Tracy build option. * Decouple URHO3D_TRACY_PROFILING exclusively from URHO3D_PROFILING. * Comment explains URHO3D_TRACY_PROFILING * Update * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update * Update TracyCallstack.cpp * Update * Update CMakeLists.txt * Update TracyCallstack.cpp * Update TracyCallstack.cpp Co-authored-by: 1vanK <1vanK@users.noreply.github.com>
14 lines
232 B
Makefile
14 lines
232 B
Makefile
ARCH := $(shell uname -m)
|
|
|
|
ifeq (0,$(shell $(CC) --version | grep clang && echo 1 || echo 0))
|
|
CFLAGS += -s
|
|
else
|
|
LDFLAGS := -s
|
|
endif
|
|
|
|
ifneq (,$(filter $(ARCH),aarch64 arm64))
|
|
CFLAGS += -mcpu=native
|
|
else
|
|
CFLAGS += -march=native
|
|
endif
|