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.
- checksums.yaml +4 -4
- data/lib/common/version.rb +1 -1
- data/lib/tocxx.rb +12 -2
- 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: 54b53046bfe95b41a88a6135d791ac2d9e19ef2d
|
4
|
+
data.tar.gz: ba3ab00f1ddc0d9780623381db8cf09e51e114ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6abee1d9865ef7774d3991e65248e868580e66f56b23f37b9dda5aa069bbff1fb0e08b5d4e96a825f4be46f89111219bccd5b7174cffdc9495acaf57ccbb23b9
|
7
|
+
data.tar.gz: 75d38c281ea5d35cb4b1214e8e84b68a24936f06d3ea80eb2d7340ad174f6074df5ea2934d6d393c19bd21b1eace523a4c8d7bed811d5ecdbd444cdeb4839a01
|
data/lib/common/version.rb
CHANGED
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
|
-
|
243
|
-
|
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
|
|