diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-02-21 13:34:23 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2025-06-12 14:28:43 +0900 |
commit | 166ff187bd2a84fddd7a633bdbdbcd4ae393c91e () | |
tree | e28c85457b395399b8addfe2712bdccee0b33606 | |
parent | 4585ccd90f4251f4d42bfc338a5e14100236fa15 (diff) |
[rubygems/rubygems] Removed ccache or sccache from args of Rust builder
``` " = note: some arguments are omitted. use `--verbose` to show all linker arguments\n" + " = note: error: unexpected argument '-W' found\n" + " \n" + " tip: to pass '-W' as a value, use '-- -W'\n" + " \n" + " Usage: sccache [OPTIONS] <--dist-auth|--debug-preprocessor-cache|--dist-status|--show-stats|--show-adv-stats|--start-server|--stop-server|--zero-stats|--package-toolchain <EXE> <OUT>|CMD>\n" + " \n" + " For more information, try '--help'.\n" + " \n" + ``` https://.com/rubygems/rubygems/commit/45e688ae62
-rw-r--r-- | lib/rubygems/ext/cargo_builder.rb | 4 | ||||
-rw-r--r-- | test/rubygems/test_gem_ext_cargo_builder.rb | 52 |
2 files changed, 56 insertions, 0 deletions
@@ -158,6 +158,10 @@ class Gem::Ext::CargoBuilder < Gem::Ext::Builder # mkmf work properly. def linker_args cc_flag = self.class.shellsplit(makefile_config("CC")) linker = cc_flag.shift link_args = cc_flag.flat_map {|a| ["-C", "link-arg=#{a}"] } @@ -141,6 +141,58 @@ class TestGemExtCargoBuilder < Gem::TestCase end end private def skip_unsupported_platforms! |