bake-toolkit 2.4.3 → 2.4.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/common/version.rb +1 -1
  3. data/lib/tocxx.rb +12 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5988f843e875a56d7340d145eb04d2802ded9afc
4
- data.tar.gz: a1385eaa3a37f33d7266790bea4ff5cb5d877fa0
3
+ metadata.gz: 54b53046bfe95b41a88a6135d791ac2d9e19ef2d
4
+ data.tar.gz: ba3ab00f1ddc0d9780623381db8cf09e51e114ce
5
5
  SHA512:
6
- metadata.gz: 213f610952f6bcfacef10bbb4e8e27c877f6c3eadbdd590f419e483eb0c9b206a7136d255de5f8ce65bc311440745ea5ec361a866a98b8c024a5bf691799fa9f
7
- data.tar.gz: 8f0c811eebcf0af7ebf827dbfc6dace9b221352dc5941ffd3be73cc2325b2369055a497269ba06d6da487acd1cb6362e7e820e1905832dce6d453c9b3e96ca7f
6
+ metadata.gz: 6abee1d9865ef7774d3991e65248e868580e66f56b23f37b9dda5aa069bbff1fb0e08b5d4e96a825f4be46f89111219bccd5b7174cffdc9495acaf57ccbb23b9
7
+ data.tar.gz: 75d38c281ea5d35cb4b1214e8e84b68a24936f06d3ea80eb2d7340ad174f6074df5ea2934d6d393c19bd21b1eace523a4c8d7bed811d5ecdbd444cdeb4839a01
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.4.3"
4
+ "2.4.4"
5
5
  end
6
6
  end
7
7
 
data/lib/tocxx.rb CHANGED
@@ -238,9 +238,19 @@ module Bake
238
238
  if basedOn == "MSVC"
239
239
  begin
240
240
  res = `cl.exe 2>&1`
241
+ raise Exception.new unless $?.success?
241
242
  scan_res = res.scan(/ersion (\d+).(\d+).(\d+)/)
242
- ENV["MSVC_FORCE_SYNC_PDB_WRITES"] = "-FS" if scan_res.length > 0 and scan_res[0][0].to_i >= 18 # 18 is the compiler major version in VS2013
243
- rescue Exception
243
+ if scan_res.length > 0
244
+ ENV["MSVC_FORCE_SYNC_PDB_WRITES"] = "-FS" if scan_res[0][0].to_i >= 18 # 18 is the compiler major version in VS2013
245
+ else
246
+ Bake.formatter.printError("Could not read MSVC version")
247
+ ExitHelper.exit(1)
248
+ end
249
+ rescue SystemExit
250
+ raise
251
+ rescue Exception => e
252
+ Bake.formatter.printError("Could not detect MSVC compiler")
253
+ ExitHelper.exit(1)
244
254
  end
245
255
  end
246
256
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.3
4
+ version: 2.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal