gcc-to-clang-analyzer 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/g++ +4 -1
- data/lib/gcc_to_clang_analyzer/version.rb +1 -1
- 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: 15d041bf42187e64e3c4a07676bdd599a9895e83
|
4
|
+
data.tar.gz: d45d23cdc0e77351e68d755d377ef54b52e7b891
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66d2593fe6d529c935d2632cc836351a951016868ca4ec7dd4c3956373c8aada4b59ec46e6eb1f03e7620b25a4b40f1bcd3bbc13759c36400e23d243b3e107bd
|
7
|
+
data.tar.gz: 15887598bc8ccf969992afbc82cd7ea376aa5b76f84083428a85339c278a9c4f9f1b4170982ce2bc1117a518deac7f243e096ea6b0d83fd80e590188c62cec70
|
data/bin/g++
CHANGED
@@ -4,7 +4,7 @@ require 'gcc_to_clang_analyzer/prepare_compiler_commandline'
|
|
4
4
|
require 'gcc_to_clang_analyzer/rewrite_plist_file'
|
5
5
|
require 'logger'
|
6
6
|
logger = Logger.new(STDOUT)
|
7
|
-
logger.level = Logger::
|
7
|
+
logger.level = Logger::
|
8
8
|
logger.debug("original #{ARGV.join(' ')}")
|
9
9
|
|
10
10
|
command_line, output = PrepareCompilerCommandline.transform(ARGV)
|
@@ -13,6 +13,8 @@ cl = command_line.join(' ')
|
|
13
13
|
logger.info("executing '#{cl}'")
|
14
14
|
|
15
15
|
res = system(cl)
|
16
|
+
return res if res != 0
|
17
|
+
|
16
18
|
if res && output.length > 0
|
17
19
|
workspace_path = File.absolute_path('..')
|
18
20
|
prefix = File.absolute_path('.').gsub(workspace_path+'/', '')
|
@@ -23,3 +25,4 @@ if res && output.length > 0
|
|
23
25
|
File.delete(output)
|
24
26
|
File.rename(tmp_output, output)
|
25
27
|
end
|
28
|
+
return 0
|