[Profile][Windows] Drop extern for __buildid.#80700
Merged
Merged
Conversation
Member
|
@llvm/pr-subscribers-pgo Author: Zequan Wu (ZequanWu) ChangesFull diff: https://github.com/llvm/llvm-project/pull/80700.diff 1 Files Affected:
diff --git a/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c b/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
index c976776ae59e9..0751b28f81d0a 100644
--- a/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
+++ b/compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
@@ -77,7 +77,7 @@ ValueProfNode *EndVNode = &VNodesEnd;
/* lld-link provides __buildid symbol which ponits to the 16 bytes build id when
* using /build-id flag. https://lld.llvm.org/windows_support.html#lld-flags */
#define BUILD_ID_LEN 16
-COMPILER_RT_WEAK extern uint8_t __buildid[BUILD_ID_LEN];
+COMPILER_RT_WEAK uint8_t __buildid[BUILD_ID_LEN];
COMPILER_RT_VISIBILITY int __llvm_write_binary_ids(ProfDataWriter *Writer) {
if (*__buildid) {
if (Writer &&
|
nikic
approved these changes
Feb 5, 2024
Contributor
nikic
left a comment
There was a problem hiding this comment.
LGTM, I confirmed that this fixes the mingw build.
Contributor
|
Can we also backport it to 18 release? also cc @mstorsjo for awareness |
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this pull request
Feb 6, 2024
(cherry picked from commit dd22140)
Member
|
Just for reference - see #75618 (comment) for a bit more discussion on the solution chosen here. (In short, the chosen solution is fine.) |
llvmbot
pushed a commit
to llvmbot/llvm-project
that referenced
this pull request
Feb 6, 2024
(cherry picked from commit dd22140)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this pull request
Feb 14, 2024
(cherry picked from commit dd22140)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this pull request
Feb 14, 2024
(cherry picked from commit dd22140)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this pull request
Feb 14, 2024
(cherry picked from commit dd22140)
tstellar
pushed a commit
to tstellar/llvm-project
that referenced
this pull request
Feb 14, 2024
(cherry picked from commit dd22140)
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.