Skip to content

Commit

Permalink
Add comments to config.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
yutannihilation committed Nov 15, 2024
1 parent b73fd71 commit 4633774
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ r-test = "run --manifest-path ./savvy-cli/Cargo.toml -- test"
# On Windows, link.exe fails when the artifact contains unresolved symbols
# (i.e., R's API, which cannot be used without a real R session). This option
# makes the linker ignore these problems.
#
# This setting is needed only when you run `cargo test`, not when `R CMD check`
# etc. The `.cargo` directory need to be excluded on building the package (i.e.
# add `^src/rust/.cargo$` to `.Rbuildignore`) because otherwise you'll get the
# "hidden files and directories" NOTE.
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-arg=/FORCE:UNRESOLVED"]
5 changes: 5 additions & 0 deletions R-package/src/rust/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# On Windows, link.exe fails when the artifact contains unresolved symbols
# (i.e., R's API, which cannot be used without a real R session). This option
# makes the linker ignore these problems.
#
# This setting is needed only when you run `cargo test`, not when `R CMD check`
# etc. The `.cargo` directory need to be excluded on building the package (i.e.
# add `^src/rust/.cargo$` to `.Rbuildignore`) because otherwise you'll get the
# "hidden files and directories" NOTE.
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-arg=/FORCE:UNRESOLVED"]
5 changes: 5 additions & 0 deletions savvy-bindgen/src/gen/templates/config_toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# On Windows, link.exe fails when the artifact contains unresolved symbols
# (i.e., R's API, which cannot be used without a real R session). This option
# makes the linker ignore these problems.
#
# This setting is needed only when you run `cargo test`, not when `R CMD check`
# etc. The `.cargo` directory need to be excluded on building the package (i.e.
# add `^src/rust/.cargo$` to `.Rbuildignore`) because otherwise you'll get the
# "hidden files and directories" NOTE.
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "link-arg=/FORCE:UNRESOLVED"]

0 comments on commit 4633774

Please sign in to comment.