wordtriez 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/extconf.rb +8 -2
- data/ext/hat-trie/text.c +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c086defc8f9d26af3174ab0fe8f6abeec00add65
|
4
|
+
data.tar.gz: 1093097d455ed7b082c7da626c923a221e41853d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 09bbe2b50bda31e775d17906b4a448e505e8f676bfb84e37d36186afaba706d6e3de0567e49f0ab37440eabcfa6a44176c1ee3a6ba173287022849901a1adeef
|
7
|
+
data.tar.gz: 46f914ec077291c2f5d7b749799f0179ab42208894622da5fcb4dde360c992082faa747faec6a56a949d735bfbd78f0c6c21ec7e653c253832479ec5b9ec724a
|
data/ext/extconf.rb
CHANGED
@@ -23,8 +23,14 @@ build_dir = File.dirname(__FILE__) + '/build'
|
|
23
23
|
mkdir_p build_dir
|
24
24
|
cd build_dir
|
25
25
|
unless File.exist?('libtries.a')
|
26
|
-
cc = ENV['CC'] || RbConfig::CONFIG['CC']
|
27
|
-
|
26
|
+
cc = [ENV['CC'] || RbConfig::CONFIG['CC']]
|
27
|
+
if enable_config('debug')
|
28
|
+
CONFIG['debugflags'] << ' -ggdb3 -O0'
|
29
|
+
cc += ['-O0', '-ggdb3']
|
30
|
+
else
|
31
|
+
cc += ['-O3']
|
32
|
+
end
|
33
|
+
cc += ['-std=c99', '-Wall', '-pedantic', '-fPIC', '-c']
|
28
34
|
ar = RbConfig::CONFIG['AR']
|
29
35
|
ar = 'ar' unless File.exist?(ar)
|
30
36
|
sh *cc, '-I..', *Dir.glob("../hat-trie/*.c")
|
data/ext/hat-trie/text.c
CHANGED