Skip to content

./x.py build --verbose and config.toml build.verbose=2 don't trigger cargo --verbose #42099

Closed
@devurandom

Description

@devurandom

Passing --verbose to ./x.py build and setting build.verbose in config.toml does not cause --verbose to be passed to cargo, which results in a non-verbose build.

I am trying to build rust-1.17.0 as follows:

   cat <<- EOF > "${S}"/config.toml
        [llvm]
        optimize = $(toml_usex !debug)
        release-debuginfo = $(toml_usex debug)
        assertions = $(toml_usex debug)
        [build]
        build = "${CTARGET}"
        host = "${CTARGET}"
        target = "${CTARGET}"
        cargo = "${WORKDIR}/${cargo_stage0}/cargo/bin/cargo"
        rustc = "${WORKDIR}/${rustc_stage0}/rustc/bin/rustc"
        docs = $(toml_usex doc)
        submodules = false
        python = "${EPYTHON}"
        locked-deps = true
        vendor = true
        verbose = 2
        [install]
        prefix = "${EPREFIX}/usr"
        libdir = "$(get_libdir)/${P}"
        docdir = "share/doc/${P}"
        mandir = "share/${P}/man"
        [rust]
        optimize = $(toml_usex !debug)
        debuginfo = $(toml_usex debug)
        debug-assertions = $(toml_usex debug)
        use-jemalloc = $(toml_usex jemalloc)
        default-linker = "${linker}"
        default-ar = "${archiver}"
        rpath = false
        [target.x86_64-unknown-linux-gnu]
        cc = "${c_compiler}"
        cxx = "${cxx_compiler}"
        llvm-config = "${llvm_config}"
    EOF

   ./x.py build --verbose --config="${S}"/config.toml

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions