| Hi all, I'm trying to write a derivation for an embedded C++ microcontroller application. For this, I must use a copy of libstdc++ with something like --enable-cxx-flags='-fno-exceptions -fno-rtti' (docs here). Is there a way to configure Nixpkgs to use these settings for libstdc++ for the host platform? Something to add to the following, for example?
import <nixpkgs> {
crossSystem = {
config = "arm-none-eabihf";
libc = "newlib-nano";
gcc = {
cpu = "cortex-m7";
fpu = "fpv5-d16";
float-abi = "hard";
thumb = true;
};
rust.rustcTarget = "thumbv7em-none-eabihf";
isStatic = true;
}
}
|