rb_sys 0.9.22 → 0.9.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63ba0fbfb3a21414b8e379d92abf8cf37ca5b310e57360d57d42d10a1aa42b22
4
- data.tar.gz: 54ab9824e5902fbe11416cd8be8529fb90f9129412bbe916b5195270ca54fb9d
3
+ metadata.gz: 690a0a0013da370bdbe206fa6067d7f40ef4368fd7031aa24fc27d45c2f5ddbf
4
+ data.tar.gz: d0bea23bc70fa5109ef69cc12504e2d5ba00ca408033702803aef5c0d6a89737
5
5
  SHA512:
6
- metadata.gz: 523f540fdbfabed2e6988871ec2bd4f2d97a20c5ab0c39a8b10181dacff50a6c32cfcfaafe1335d6f4d5454458201feb20df7fb2fc14f6a28a8b9df7c077b1c8
7
- data.tar.gz: a49dc910f814519fc42d37c08ba3ce52729b90ca47bc08a1f48f9edba26e54c7bcfe234ce952b80c0a2a8a88f82565bfc7784f9ee067e92b3bbade2cc7bda4dc
6
+ metadata.gz: 5554e164a6bb504282013e31f56a34f44381f81785dd1f4660b8d126555fd049ca2f6c71b51c91b959740e3b721bf674fe75756eb6fbd8d4754c36df54108d69
7
+ data.tar.gz: ab49ec7247e0dd08203bf4dc4db749969d440deafd30c0bb00784f0883b5d02cf87d6f01de0163f2c94792653263827c5236fd02d3b9958f9ca7434c88bf1f6c
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rb_sys/mkmf.rb CHANGED
@@ -88,15 +88,16 @@ module RbSys
88
88
  target_prefix = #{target_prefix}
89
89
  TARGET_NAME = #{target[/\A\w+/]}
90
90
  TARGET_ENTRY = #{RbConfig::CONFIG["EXPORT_PREFIX"]}Init_$(TARGET_NAME)
91
- CLEANLIBS = $(RUSTLIB)
92
91
  RUBYARCHDIR = $(sitearchdir)$(target_prefix)
93
92
  TARGET = #{target}
94
93
  DLLIB = $(TARGET).#{RbConfig::CONFIG["DLEXT"]}
95
94
  TARGET_DIR = #{Dir.pwd}/$(RB_SYS_CARGO_BUILD_TARGET_DIR)/$(RB_SYS_CARGO_PROFILE_DIR)
96
95
  RUSTLIB = $(TARGET_DIR)/$(SOEXT_PREFIX)$(TARGET_NAME).$(SOEXT)
97
96
 
98
- CLEANOBJS = $(TARGET_DIR)/.fingerprint $(TARGET_DIR)/incremental $(TARGET_DIR)/examples $(TARGET_DIR)/deps $(TARGET_DIR)/build $(TARGET_DIR)/.cargo-lock $(TARGET_DIR)/*.d $(RB_SYS_BUILD_DIR)
97
+ CLEANOBJS = $(TARGET_DIR)/.fingerprint $(TARGET_DIR)/incremental $(TARGET_DIR)/examples $(TARGET_DIR)/deps $(TARGET_DIR)/build $(TARGET_DIR)/.cargo-lock $(TARGET_DIR)/*.d $(TARGET_DIR)/*.rlib $(RB_SYS_BUILD_DIR)
99
98
  DEFFILE = $(TARGET_DIR)/$(TARGET)-$(arch).def
99
+ CLEANLIBS = $(DLLIB) $(RUSTLIB) $(DEFFILE)
100
+
100
101
  #{base_makefile(srcdir)}
101
102
 
102
103
  ifneq ($(RB_SYS_VERBOSE),)
@@ -104,7 +105,7 @@ module RbSys
104
105
  endif
105
106
 
106
107
  #{env_vars(builder)}
107
- $(DLLIB): export RUSTFLAGS := $(RUSTFLAGS) $(RB_SYS_EXTRA_RUSTFLAGS)
108
+ $(RUSTLIB): export RUSTFLAGS := $(RUSTFLAGS) $(RB_SYS_EXTRA_RUSTFLAGS)
108
109
 
109
110
  FORCE: ;
110
111
 
@@ -118,15 +119,17 @@ module RbSys
118
119
 
119
120
  #{optional_rust_toolchain(builder)}
120
121
 
121
- $(DLLIB): $(DEFFILE) FORCE
122
+ $(RUSTLIB): $(DEFFILE) FORCE
122
123
  \t$(ECHO) generating $(@) \\("$(RB_SYS_CARGO_PROFILE)"\\)
123
124
  \t$(Q) #{full_cargo_command}
125
+
126
+ $(DLLIB): $(RUSTLIB)
124
127
  \t$(Q) $(COPY) "$(RUSTLIB)" $@
125
128
 
126
- install-so: $(DLLIB) Makefile
127
- \t$(ECHO) installing $(DLLIB)
129
+ install-so: $(DLLIB)
130
+ \t$(ECHO) installing $(DLLIB) to $(RUBYARCHDIR)
128
131
  \t$(Q) $(MAKEDIRS) $(RUBYARCHDIR)
129
- \t$(Q) $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
132
+ \t$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
130
133
 
131
134
  install: #{builder.clean_after_install ? "install-so realclean" : "install-so"}
132
135
 
@@ -167,7 +170,7 @@ module RbSys
167
170
 
168
171
  def env_line(k, v)
169
172
  return unless v
170
- %($(DLLIB): export #{k} = #{v.gsub("\n", '\n')})
173
+ %($(RUSTLIB): export #{k} = #{v.gsub("\n", '\n')})
171
174
  end
172
175
 
173
176
  def env_or_makefile_config(key)
@@ -213,11 +216,11 @@ module RbSys
213
216
 
214
217
  $(CARGO):
215
218
  \t$(Q) $(MAKEDIRS) $(CARGO_HOME) $(RUSTUP_HOME)
216
- \tcurl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --default-toolchain none -y
219
+ \tcurl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" | sh -s -- --no-modify-path --profile minimal --default-toolchain none -y
217
220
  \trustup toolchain install $(RB_SYS_DEFAULT_TOOLCHAIN) --profile $(RB_SYS_RUSTUP_PROFILE)
218
221
  \trustup default $(RB_SYS_DEFAULT_TOOLCHAIN)
219
222
 
220
- $(DLLIB): $(CARGO)
223
+ $(RUSTLIB): $(CARGO)
221
224
  endif
222
225
  MAKE
223
226
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RbSys
4
- VERSION = "0.9.22"
4
+ VERSION = "0.9.23"
5
5
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rb_sys
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.22
4
+ version: 0.9.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ker-Seymer
@@ -30,7 +30,7 @@ cert_chain:
30
30
  Rl+ASkq2/1i07TkBpCf+2hq66+h/hx+/Y/KrUzXfe0jtvil0WESkJT2kqRqHWNhD
31
31
  9GKBxaQlXokNDtWCm1/gl6cD8WRZ0N5S4ZGJT1FLLsA=
32
32
  -----END CERTIFICATE-----
33
- date: 2022-07-19 00:00:00.000000000 Z
33
+ date: 2022-07-20 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email:
metadata.gz.sig CHANGED
Binary file