Tracy Build system setup

This commit is contained in:
Félix Baylac Jacqué 2024-02-06 15:18:00 +01:00
parent 6946fe7104
commit 3ed30aaf4b
4 changed files with 9 additions and 2 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "src/libexpr/tracy"]
path = src/libexpr/tracy
url = git@github.com:wolfpld/tracy.git

View File

@ -25,6 +25,7 @@
#include "flake/flakeref.hh"
#include "parser-tab.hh"
#include <tracy/Tracy.hpp>
#include <algorithm>
#include <chrono>
#include <iostream>
@ -1372,6 +1373,7 @@ static std::string showAttrPath(EvalState & state, Env & env, const AttrPath & a
void ExprSelect::eval(EvalState & state, Env & env, Value & v)
{
ZoneScopedN("select");
Value vTmp;
PosIdx pos2;
Value * vAttrs = &vTmp;

View File

@ -10,9 +10,10 @@ libexpr_SOURCES := \
$(wildcard $(d)/primops/*.cc) \
$(wildcard $(d)/flake/*.cc) \
$(d)/lexer-tab.cc \
$(d)/parser-tab.cc
$(d)/parser-tab.cc \
$(d)/tracy/public/TracyClient.cpp
libexpr_CXXFLAGS += -I src/libutil -I src/libstore -I src/libfetchers -I src/libmain -I src/libexpr
libexpr_CXXFLAGS += -I src/libutil -I src/libstore -I src/libfetchers -I src/libmain -I src/libexpr -I src/libexpr/tracy/public
libexpr_LIBS = libutil libstore libfetchers

1
src/libexpr/tracy Submodule

@ -0,0 +1 @@
Subproject commit 37aff70dfa50cf6307b3fee6074d627dc2929143