tracy: force-disable LTO for darwin
This commit is contained in:
parent
3dc4351159
commit
59d8cd8cb6
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
{ 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";
|
||||
version = "0.7.7";
|
||||
|
||||
|
@ -19,7 +21,10 @@ stdenv.mkDerivation rec {
|
|||
|
||||
NIX_CFLAGS_COMPILE = [ ]
|
||||
++ 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 = ''
|
||||
make -j $NIX_BUILD_CORES -C profiler/build/unix release
|
||||
|
|
Loading…
Reference in a new issue