File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1- TARGET = x86_64-pc-windows-gnu
1+ TARGET = $(shell "$(R_HOME)/bin$(R_ARCH_BIN)/Rscript.exe" "../tools/rustarch.R")
22LIBDIR = myrustlib/target/$(TARGET)/release
33STATLIB = $(LIBDIR)/libmyrustlib.a
44PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv -ldbghelp -lbcrypt -lntdll
Original file line number Diff line number Diff line change 1+ # See notes in FAQ about ARM64 support:
2+ # https://github.com/r-rust/faq#does-rust-support-windows-on-arm64-aarch64
3+ arch <- if (grepl(" aarch" , R.version $ platform )){
4+ " aarch64-pc-windows-gnullvm"
5+ } else if (grepl(" clang" , Sys.getenv(' R_COMPILED_BY' ))){
6+ " x86_64-pc-windows-gnullvm"
7+ } else if (grepl(" i386" , R.version $ platform )){
8+ " i686-pc-windows-gnu"
9+ } else {
10+ " x86_64-pc-windows-gnu"
11+ }
12+
13+ cat(arch )
You can’t perform that action at this time.
0 commit comments