|
1 | | ---- a/BUILD.bazel 2026-03-24 11:46:07.317446858 -0300 |
2 | | -+++ b/BUILD.bazel 2026-03-25 10:48:54.430923058 -0300 |
3 | | -@@ -20,20 +20,29 @@ |
| 1 | +--- a/BUILD.bazel 2026-04-01 10:22:09.813888242 -0300 |
| 2 | ++++ b/BUILD.bazel 2026-04-01 11:13:26.423352671 -0300 |
| 3 | +@@ -20,20 +20,33 @@ |
4 | 4 | "src/include/liburing/io_uring_version.h", |
5 | 5 | ], |
6 | 6 | cmd = """ |
7 | 7 | - export CC=$(CC) CXX=$(CC)++ |
8 | 8 | + export CC=$(CC) CXX=$(CC)++ CFLAGS="$(CC_FLAGS)" |
9 | | - |
| 9 | ++ # CORE-15978 Skip linking: probes only need compilation, |
| 10 | ++ # and because there is no LD_FLAGS equivalent of CC_FLAGS |
| 11 | ++ # exposed by bazel, system ld gets used, which can't |
| 12 | ++ # resolve sysroot linker scripts in the sandbox. |
| 13 | ++ export LDFLAGS="-c" |
| 14 | + |
10 | 15 | - # switch to the package dir to execute "configure" right there |
11 | 16 | - pushd $$(dirname $(location configure)) |
12 | 17 | - mkdir -p src/include/liburing |
|
22 | 27 | + ln -sf $$pkg_dir/liburing.spec liburing.spec |
23 | 28 | + mkdir -p src/include/liburing |
24 | 29 | + $$pkg_dir/configure --use-libc |
25 | | - |
| 30 | + |
26 | 31 | # collect the outputs |
27 | 32 | for out in $(OUTS); do |
28 | 33 | - cp $$(realpath --relative-to=$(BINDIR) $$out) $$out |
29 | 34 | + cp $${out#$(RULEDIR)/} $$out |
30 | 35 | done |
31 | 36 | """, |
32 | 37 | - toolchains = ["@bazel_tools//tools/cpp:current_cc_toolchain"], |
33 | | -+ local = True, |
34 | 38 | + toolchains = [ |
35 | 39 | + "@bazel_tools//tools/cpp:current_cc_toolchain", |
36 | 40 | + "@bazel_tools//tools/cpp:cc_flags", |
37 | 41 | + ], |
38 | 42 | tools = ["configure"], |
39 | 43 | ) |
40 | | - |
| 44 | + |
| 45 | +@@ -76,6 +89,7 @@ |
| 46 | + "-Wall", |
| 47 | + "-Wextra", |
| 48 | + "-fno-stack-protector", |
| 49 | ++ "-Wno-unused-parameter", |
| 50 | + "-include config-host.h", |
| 51 | + ], |
| 52 | + includes = ["src/include"], |
0 commit comments