-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[llvm][telemetry]Change Telemetry-disabling mechanism. #128534
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
Changes from 3 commits
236ab76
45869d7
b199854
9f5cfcd
361a564
013637a
409636e
c0a8d47
19badf7
e6fa138
785cd8c
36ffad7
c02bb0c
e21a8b1
c265467
9124299
a72c7db
60924f7
bf24522
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,6 +202,10 @@ | |
| #cmakedefine LLVM_HAS_LOGF128 | ||
|
|
||
| /* Define if building LLVM with LLVM_BUILD_TELEMETRY */ | ||
| /* DEPRECATED - use LLVM_ENABLE_TELEMETRY */ | ||
|
||
| #cmakedefine LLVM_BUILD_TELEMETRY ${LLVM_BUILD_TELEMETRY} | ||
|
|
||
| /* Define if building LLVM with LLVM_ENABLE_TELEMETRY */ | ||
| #cmakedefine LLVM_ENABLE_TELEMETRY ${LLVM_ENABLE_TELEMETRY} | ||
oontvoo marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| #endif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,6 +21,8 @@ void TelemetryInfo::serialize(Serializer &serializer) const { | |
| } | ||
|
|
||
| Error Manager::dispatch(TelemetryInfo *Entry) { | ||
| assert(Config::BuildTimeEnableTelemetry && | ||
| "Telemetry should have been enabled"); | ||
|
Comment on lines
+24
to
+25
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Won't this be a problem for unit tests? I see you're enabling them, but I suspect they won't actually succeed with this setting turned off..
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a way to say "if LLVM_ENABLE_TELEMETRY is not set, then skip the tests)?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. P.S: How about this? Adding GTEST_SKIP if the static flag is false.
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That would work. Since this is a build-time condition another possibility would be to disable the test (gtest doesn't run tests whose name starts with .. though for just two tests, that doesn't really matter.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| if (Error Err = preDispatch(Entry)) | ||
| return Err; | ||
|
|
||
|
|
||
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.
What's up with that? I don't think we usually deprecate options -- we just remove them. cmake will ignore (and warn about) unused/unknown user-specified options on the command line.
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.
This was removed.