Skip to content

Commit 33a3d8f

Browse files
jyknightgithub-actions[bot]
authored andcommitted
Automerge: [bazel] Update after 2447540
2 parents cc85882 + f71b188 commit 33a3d8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

utils/bazel/llvm_configs/abi-breaking.h.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
#ifndef LLVM_ABI_BREAKING_CHECKS_H
1313
#define LLVM_ABI_BREAKING_CHECKS_H
1414

15+
// Compiler.h is required for LLVM_ABI definition.
16+
#include "llvm/Support/Compiler.h"
17+
1518
/* Define to enable checks that alter the LLVM C++ ABI */
1619
#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
1720

@@ -43,12 +46,12 @@
4346
#endif
4447
namespace llvm {
4548
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
46-
extern int EnableABIBreakingChecks;
49+
LLVM_ABI extern int EnableABIBreakingChecks;
4750
LLVM_HIDDEN_VISIBILITY
4851
__attribute__((weak)) int *VerifyEnableABIBreakingChecks =
4952
&EnableABIBreakingChecks;
5053
#else
51-
extern int DisableABIBreakingChecks;
54+
LLVM_ABI extern int DisableABIBreakingChecks;
5255
LLVM_HIDDEN_VISIBILITY
5356
__attribute__((weak)) int *VerifyDisableABIBreakingChecks =
5457
&DisableABIBreakingChecks;

0 commit comments

Comments
 (0)