Skip to content

Commit 4c9f6d6

Browse files
authored
[BOLT][AArch64] Fix ifuncs test header inclusion (#71741)
Summary: Do not include stdlib headers as these tests are built with -nostdlib. Tests outside of runtime folder also run cross-platforms, so an x86 machine wouldn't have access to the correct headers used in the aarch64 toolchain, even if it has an aarch64 compiler (clang itself).
1 parent d42b2ce commit 4c9f6d6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

bolt/test/AArch64/ifunc.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@
2828
// O0_CHECK: adr x{{[0-9]+}}, ifoo
2929
// O3_CHECK: b "{{resolver_foo|ifoo}}{{.*}}@PLT"
3030

31-
#include <stdio.h>
32-
#include <string.h>
33-
3431
static void foo() {}
3532

3633
static void *resolver_foo(void) { return foo; }

0 commit comments

Comments
 (0)