1
0
Fork 0

check for CONFIG_RUST_OVERFLOW_CHECKS when rust is enabled

This commit is contained in:
Pratham Patel 2024-04-16 19:20:15 +05:30
parent c3880c51e1
commit 7863538509
Signed by: thefossguy
SSH Key Fingerprint: SHA256:HwRBy9H1FYXWcv/Qi1WY3kmcVtGz2ydZuPJgD4pkusY
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ function enable_rust_config() {
make rustavailable
make rust.config
if ! grep -q 'CONFIG_RUST=y' .config; then
if ! grep -q 'CONFIG_RUST=y' .config && ! grep -q 'CONFIG_RUST_OVERFLOW_CHECKS=y' .config; then
echo 'ERROR: building with Rust does not seem to be possible'
exit 4
fi