tracy: force-disable LTO for darwin
This commit is contained in:
parent
3dc4351159
commit
59d8cd8cb6
@ -1,6 +1,8 @@
|
|||||||
{ stdenv, lib, darwin, fetchFromGitHub, tbb, gtk3, glfw, pkg-config, freetype, Carbon, AppKit, capstone }:
|
{ stdenv, lib, darwin, fetchFromGitHub, tbb, gtk3, glfw, pkg-config, freetype, Carbon, AppKit, capstone }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
|
disableLTO = stdenv.cc.isClang && stdenv.isDarwin; # workaround issue #19098
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
pname = "tracy";
|
pname = "tracy";
|
||||||
version = "0.7.7";
|
version = "0.7.7";
|
||||||
|
|
||||||
@ -19,7 +21,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [ ]
|
NIX_CFLAGS_COMPILE = [ ]
|
||||||
++ lib.optional stdenv.isLinux "-ltbb"
|
++ lib.optional stdenv.isLinux "-ltbb"
|
||||||
++ lib.optional stdenv.cc.isClang "-faligned-allocation";
|
++ lib.optional stdenv.cc.isClang "-faligned-allocation"
|
||||||
|
++ lib.optional disableLTO "-fno-lto";
|
||||||
|
|
||||||
|
NIX_CFLAGS_LINK = lib.optional disableLTO "-fno-lto";
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make -j $NIX_BUILD_CORES -C profiler/build/unix release
|
make -j $NIX_BUILD_CORES -C profiler/build/unix release
|
||||||
|
Loading…
x
Reference in New Issue
Block a user