GithubHelp home page GithubHelp logo

Explicitly building sysroot about xargo HOT 2 OPEN

japaric avatar japaric commented on August 19, 2024
Explicitly building sysroot

from xargo.

Comments (2)

japaric avatar japaric commented on August 19, 2024

So that I could explicitly get xargo to build a sysroot by typing xargo --target={TARGET_NAME}.

That's the current behavior. It's just that xargo doesn't print to stdout by default (see #7). But if you use RUST_LOG you can see that's the case:

$ RUST_LOG=xargo xargo --target stm32f100                                                       <<<
INFO:xargo: target: stm32f100
INFO:xargo::sysroot: rustc is a nightly from: 2016-04-22
INFO:xargo::sysroot: fetching source tarball
INFO:xargo::sysroot: unpacking source tarball
INFO:xargo::sysroot: cross compiling crates
INFO:xargo::sysroot: calling: "cargo" "build" "--release" "--target" "stm32f100" "-p" "collections" "-p" "rand"
INFO:xargo::sysroot:
   Compiling core v0.0.0 (file:///home/japaric/.xargo/src/libcore)
   Compiling rustc_unicode v0.0.0 (file:///home/japaric/.xargo/src/librustc_unicode)
   Compiling rand v0.0.0 (file:///home/japaric/.xargo/src/librand)
   Compiling alloc v0.0.0 (file:///home/japaric/.xargo/src/liballoc)
   Compiling collections v0.0.0 (file:///home/japaric/.xargo/src/libcollections)

INFO:xargo::sysroot: symlinking host crates
error: Unknown flag: '--target'

Hmm, it errors at the end because xargo ends up calling cargo --target stm32f100. Perhaps we could special case xargo --target $foo to not call cargo.

from xargo.

kent-mcleod avatar kent-mcleod commented on August 19, 2024

Right. I don't see any potential problems with special casing that, unless in the future cargo --target $thing became a valid call.

from xargo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.