rbtrace 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/bin/rbtrace +1 -1
- data/ext/extconf.rb +12 -1
- data/ext/rbtrace.c +4 -4
- data/rbtrace.gemspec +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/bin/rbtrace
CHANGED
data/ext/extconf.rb
CHANGED
@@ -17,15 +17,26 @@ unless File.exists?("#{CWD}/dst/lib/libmsgpackc.a")
|
|
17
17
|
msgpack = File.basename('msgpack-0.5.4.tar.gz')
|
18
18
|
dir = File.basename(msgpack, '.tar.gz')
|
19
19
|
|
20
|
+
# build fat binaries on osx
|
21
|
+
if RUBY_PLATFORM =~ /darwin/ and (archs = Config::CONFIG['LDFLAGS'].scan(/(-arch\s+.+?)(?:\s|$)/).flatten).any?
|
22
|
+
cflags, ldflags = ENV['CFLAGS'], ENV['LDFLAGS']
|
23
|
+
ENV['CFLAGS'] = "#{cflags} #{archs.join(' ')}"
|
24
|
+
ENV['LDFLAGS'] = "#{ldflags} #{archs.join(' ')}"
|
25
|
+
end
|
26
|
+
|
20
27
|
Dir.chdir('src') do
|
21
28
|
FileUtils.rm_rf(dir) if File.exists?(dir)
|
22
29
|
|
23
30
|
sys("tar zxvf #{msgpack}")
|
24
31
|
Dir.chdir(dir) do
|
25
|
-
sys("./configure --disable-shared --disable-cxx --with-pic --prefix=#{CWD}/dst/")
|
32
|
+
sys("./configure --disable-dependency-tracking --disable-shared --disable-cxx --with-pic --prefix=#{CWD}/dst/")
|
26
33
|
sys("make install")
|
27
34
|
end
|
28
35
|
end
|
36
|
+
|
37
|
+
if cflags or ldflags
|
38
|
+
ENV['CFLAGS'], ENV['LDFLAGS'] = cflags, ldflags
|
39
|
+
end
|
29
40
|
end
|
30
41
|
|
31
42
|
FileUtils.cp "#{CWD}/dst/lib/libmsgpackc.a", "#{CWD}/libmsgpackc_ext.a"
|
data/ext/rbtrace.c
CHANGED
@@ -901,10 +901,10 @@ rbtrace__process_event(msgpack_object cmd)
|
|
901
901
|
}
|
902
902
|
|
903
903
|
rbtrace__send_event(1,
|
904
|
-
|
905
|
-
|
906
|
-
|
907
|
-
|
904
|
+
"forked",
|
905
|
+
inner == -1 ? 'b' : 'u',
|
906
|
+
inner == -1 ? false : (uint32_t) inner
|
907
|
+
);
|
908
908
|
|
909
909
|
// kill off outer fork
|
910
910
|
_exit(0);
|
data/rbtrace.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbtrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 11
|
10
|
+
version: 0.3.11
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aman Gupta
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-01 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|