Skip to content

Commit 30cef49

Browse files
committed
build with make no lto with changes 9
1 parent 3f27933 commit 30cef49

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/actions/action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,11 +1303,7 @@ runs:
13031303
scripts/config --file "$OUT/.config" -d LTO_CLANG
13041304
scripts/config --file "$OUT/.config" -d LTO_CLANG_FULL
13051305
scripts/config --file "$OUT/.config" -d LTO_CLANG_THIN
1306-
scripts/config --file "$OUT/.config" -e CC_CAN_LINK
1307-
scripts/config --file "$OUT/.config" -e CC_CAN_LINK_STATIC
1308-
scripts/config --file "$OUT/.config" -d UAPI_HEADER_TEST
13091306
make LTO=none O="$OUT" olddefconfig
1310-
grep -i uapi_header_test "$OUT/.config"
13111307
13121308
# ${KCFLAGS_EXTRA}
13131309
KCFLAGS="$KCFLAGS -Wno-error -pipe -fno-stack-protector ${KCFLAGS_EXTRA}"
@@ -1346,6 +1342,16 @@ runs:
13461342
fi
13471343
fi
13481344
1345+
# CRITICAL: Force disable after priming
1346+
scripts/config --file "$OUT/.config" -e CC_CAN_LINK -e CC_CAN_LINK_STATIC
1347+
scripts/config --file "$OUT/.config" -d UAPI_HEADER_TEST
1348+
make LTO=none O="$OUT" olddefconfig
1349+
# Add this verification (fails build if mismatch)
1350+
grep -E "(HEADERS_INSTALL|CC_CAN_LINK|UAPI_HEADER_TEST)" "$OUT/.config" || echo "✅ Configs match Bazel"
1351+
if ! grep -q "CONFIG_UAPI_HEADER_TEST=n\|# CONFIG_UAPI_HEADER_TEST" "$OUT/.config"; then
1352+
echo "::error::UAPI_HEADER_TEST not disabled!"
1353+
fi
1354+
13491355
BUILD_START=$(date +%s)
13501356
set -o pipefail
13511357

0 commit comments

Comments
 (0)