btf, scripts: Exclude Rust CUs with pahole
[sfrench/cifs-2.6.git] / init / Kconfig
index 7e5c3ddc341de319115e47399beb53e9b9960363..c93f19dd872e2381688d0dd110198137addceab7 100644 (file)
@@ -1935,7 +1935,7 @@ config RUST
        depends on !MODVERSIONS
        depends on !GCC_PLUGINS
        depends on !RANDSTRUCT
-       depends on !DEBUG_INFO_BTF
+       depends on !DEBUG_INFO_BTF || PAHOLE_HAS_LANG_EXCLUDE
        select CONSTRUCTORS
        help
          Enables Rust support in the kernel.