Skip to content

Commit

Permalink
[Profile][Windows] Drop extern for __buildid. (#80700)
Browse files Browse the repository at this point in the history
(cherry picked from commit dd22140)
  • Loading branch information
ZequanWu authored and tstellar committed Feb 6, 2024
1 parent 6e9fd6b commit c92b81d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/lib/profile/InstrProfilingPlatformWindows.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit c92b81d

Please sign in to comment.