Skip to content

Commit f71b188

Browse files
committed
[bazel] Update after 2447540
1 parent 7c6edf4 commit f71b188

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)