-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unvendor nlohmann json #15956
Unvendor nlohmann json #15956
Conversation
@@ -4,7 +4,7 @@ | |||
|
|||
#pragma once | |||
|
|||
#include "tt_metal/third_party/json/json.hpp" | |||
#include <nlohmann/json.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@patrickroberts @yan-zaretskiy
So this is our preferred way of referring to external libraries that we pull in through any dependency management system (in this case, CPM)? So it's clear it's external?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
external lib ideally you include via <>
.
things from your project you include via ""
@@ -18,7 +18,7 @@ | |||
#include "impl/event/event.hpp" | |||
#include "impl/program/program.hpp" | |||
#include "tests/tt_metal/tt_metal/common/dispatch_fixture.hpp" | |||
#include "third_party/json/json.hpp" | |||
#include <nlohmann/json.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait this wasn't even a submodule? We just copy-pasted the files??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what vendoring is hahaahahahahahaah
We are a funny "SW" engineering company
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I learned this term from Rayray
POGGERS TY BOSS MAN |
Ticket
Closes #14326
Problem description
json is an external dependency, lets treat it like one.
By having it as an external dependency, we can easily:
What's changed
Use json like external dep.
Bring it in from CPM.
Use cmake library target to propagate include path.
Checklist