enveloperb 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/Rakefile +8 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0cbf9bca661a49920a4253d26b53558a0b24230bfdc1cc899999b6a8e833fdfa
|
4
|
+
data.tar.gz: aad2ec02767d93e9960f155b61f921bd81986c5536eaa0bbe2f50c14c9afb35f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d693d44a7b3aedffdc7c2f64677f94b819e38304a8ae72723699e023b2769b2718655ff2b632a1e4c2785fdbe145da93b7df542d1cb82e3805c15e91615b35a
|
7
|
+
data.tar.gz: a8f4c7a5c759469ed45c29e0734966f9ac5db36428dac3a6cabd9870eb9afe3597f1aebaa21089962918b37ee7c61a51d0643b29856c753433dedd2a7a9c9c74
|
data/ext/Rakefile
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
task :build do
|
2
|
-
|
3
|
-
|
2
|
+
extra_flags = if RbConfig::CONFIG["SOEXT"] == "dylib"
|
3
|
+
["--", "-C", "link-args=-flat_namespace -undefined suppress"]
|
4
|
+
else
|
5
|
+
[]
|
6
|
+
end
|
7
|
+
|
8
|
+
sh *(["cargo", "rustc", "--release"] + extra_flags)
|
9
|
+
mv "../target/release/libenveloperb.#{RbConfig::CONFIG["SOEXT"]}", "../lib" rescue nil
|
4
10
|
end
|
5
11
|
|
6
12
|
task default: :build
|