Comments (2)
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.
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)
- xargo doesn't work with cranelift HOT 7
- Move away from travis-ci.org HOT 3
- v0.3.22 tag missing from repository HOT 1
- Cross compiling from Linux to Windows with disabled default features for std is giving error HOT 6
- Cross compile Tier3(mipsel-unknown-linux-uclibc) error HOT 4
- error[E0463]: can't find crate for `std` HOT 3
- Cargo cannot build `compiler_builtins` for `aarch64-unknown-linux-musl` HOT 6
- std hashbrow dependency error HOT 1
- Crazy unresolved import (all files are there) HOT 1
- rustup toolchain HOT 1
- Segmentation fault on aarch64 HOT 1
- Link error on aarch64 HOT 1
- "cant find crate std" error when trying to build DLL
- New issues
- windows build error HOT 1
- Problems with basic setup when using XARGO_RUST_SRC HOT 3
- target powerpc-unknown-linux-gnu - can't even build simple hello world
- v0.3.26 has a subtle breaking change HOT 1
- xargo cannot compile `riscv64gc-unknown-llinux-musl`
- contributing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xargo.