-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom rustc target for Windows especially #191
Comments
It would be nice if all the native ~\Documents\GitHub\libR-sys> R CMD config --ldflags
-LC:/Users/tpb398/scoop/apps/R/current/bin/x64 -lR -lm
~\Documents\GitHub\libR-sys> R CMD config --cppflags
-IC:/Users/tpb398/scoop/apps/R/current/include -IC:/Users/tpb398/scoop/apps/R/current/include/x64 Details
|
CGMossa
changed the title
[draft] Custom rustc target for Windows especially
Custom rustc target for Windows especially
Nov 2, 2023
Progress! rust-lang/rust#104761 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've been on a journey to remove
libgcc_eh
andlibgcc_s.a
, and this is what I found out.Resulting in:
Details
Information about what can be set in these files are: https://doc.rust-lang.org/beta/nightly-rustc/rustc_target/spec/struct.TargetOptions.html
Then I read about how one could make their own custom target json file and use that instead of relaying on these ones, see https://docs.rust-embedded.org/embedonomicon/custom-target.html
"is-builtin": false
-lgcc_s
, and-lgcc_eh
from everywhere.gcc_eh
is the one responsible for normal panics.linker
fromx86_64-w64-mingw32-gcc
, tox86_64-w64-mingw32.static.posix-gcc.exe
linker-flavor
togcc
.pre-link-args
:Maybe I should use
R CMD config --ldflags
:I've tried this with
libR-sys
onmain
-branch:with
.cargo/config.toml
file that is:But I get these weird
net
missing issues or something. See below:Details
The text was updated successfully, but these errors were encountered: