Skip to content

Commit 1a1de24

Browse files
committed
[bazel] update abi-breaking.h.cmake for 3be6916
1 parent f016e10 commit 1a1de24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

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

15+
#include "llvm/Support/Compiler.h"
16+
1517
/* Define to enable checks that alter the LLVM C++ ABI */
1618
#cmakedefine01 LLVM_ENABLE_ABI_BREAKING_CHECKS
1719

@@ -43,12 +45,12 @@
4345
#endif
4446
namespace llvm {
4547
#if LLVM_ENABLE_ABI_BREAKING_CHECKS
46-
extern int EnableABIBreakingChecks;
48+
LLVM_ABI extern int EnableABIBreakingChecks;
4749
LLVM_HIDDEN_VISIBILITY
4850
__attribute__((weak)) int *VerifyEnableABIBreakingChecks =
4951
&EnableABIBreakingChecks;
5052
#else
51-
extern int DisableABIBreakingChecks;
53+
LLVM_ABI extern int DisableABIBreakingChecks;
5254
LLVM_HIDDEN_VISIBILITY
5355
__attribute__((weak)) int *VerifyDisableABIBreakingChecks =
5456
&DisableABIBreakingChecks;

0 commit comments

Comments
 (0)