diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-12-02 00:51:05 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2015-12-02 00:51:05 +0100 |
commit | 96847efefd2660fe6552026d9d7a75c86c91161b (patch) | |
tree | e2bf2bbe0957d400c166e0a1da1390103438a97b /src/ruby/ext | |
parent | 508f6c73c48daca3906bb05f91d0279d5e02546d (diff) |
Making ruby's gcov configuration work.
Diffstat (limited to 'src/ruby/ext')
-rw-r--r-- | src/ruby/ext/grpc/extconf.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ruby/ext/grpc/extconf.rb b/src/ruby/ext/grpc/extconf.rb index 7972272e2d..db9385e961 100644 --- a/src/ruby/ext/grpc/extconf.rb +++ b/src/ruby/ext/grpc/extconf.rb @@ -94,6 +94,10 @@ else end $CFLAGS << ' -I' + File.join(grpc_root, 'include') $LDFLAGS << ' -L' + grpc_lib_dir + if grpc_config == 'gcov' + $CFLAGS << ' -O0 -fprofile-arcs -ftest-coverage' + $LDFLAGS << ' -fprofile-arcs -ftest-coverage -rdynamic' + end raise 'gpr not found' unless have_library('gpr', 'gpr_now') raise 'grpc not found' unless have_library('grpc', 'grpc_channel_destroy') end |