Naive build system setup
This is a first quick-and-dirty way to get the tracy integration up and running without losing my sanity trying to bend the autotools setup to work with it. Introducing a tracy submodule, injecting the required headers from here, building the TracyClient.cpp file to get the actual tracy client library.
This commit is contained in:
parent
a31f2cb0cd
commit
0905dea80f
|
@ -0,0 +1,3 @@
|
|||
[submodule "src/libexpr/tracy"]
|
||||
path = src/libexpr/tracy
|
||||
url = git@github.com:wolfpld/tracy.git
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 37aff70dfa50cf6307b3fee6074d627dc2929143
|
Loading…
Reference in New Issue