Skip to content

Commit 5f40d12

Browse files
philwocopybara-github
authored andcommitted
Fix external_path_test with newer Xcode versions.
I found this when running Bazel's test suite with Xcode 12.2: ``` external/remote/lib/lib.c:2:3: error: implicitly declaring library function 'printf' with type 'int (const char *, ...)' [-Werror,-Wimplicit-function-declaration] printf("Hello %s\n", s); ^ external/remote/lib/lib.c:2:3: note: include the header <stdio.h> or explicitly provide a declaration for 'printf' ``` PiperOrigin-RevId: 344247362
1 parent 2d990cf commit 5f40d12

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/shell/bazel/external_path_test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ EOF
6969
#define TARGET "World"
7070
EOF
7171
cat > lib/lib.c <<'EOF'
72+
#include <stdio.h>
73+
7274
int greet(char *s) {
7375
printf("Hello %s\n", s);
7476
return 0;

0 commit comments

Comments
 (0)