bake-toolkit 2.57.0 → 2.58.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de8aa9824c1fc601919ff68ed00c587802372dd08151ea455f1c35db78c82bcc
4
- data.tar.gz: bf24308e90685510c1a3177d5aa8b862cedb1638a7a54490807bde24e0111d53
3
+ metadata.gz: 92addd494a772c8a32120eaa64a9da77b6619d8e76186884a16e412c1e5fd572
4
+ data.tar.gz: 5c977f46064f6ccdaf85fa2aed7f4edb7e8110a356c1baa5964bc253466f7f47
5
5
  SHA512:
6
- metadata.gz: bd49acd8b6184ce3c1cbd2d8767082481b4a2c34731fa8287777335dc79a5e35cdbd389b0e8d7c74b16ce919a288ac3131ed3979d7f92565ff1cb1626bded74b
7
- data.tar.gz: 150e063635569071d3f3c9ff26a2f30ef777c3806b9fd0d341becc9b255da30ac743842b30f412db18b8e9a2981d012a06b527e772dd0de441a38f71ff551d2b
6
+ metadata.gz: 4697797cb5e752c782cf8fe5067a1483b95863fbe46847f53eea17392e66ffc16c489bd53bd78c5a288b8ef2a38f2ef58be42dd8aed405fdca8de82531535537
7
+ data.tar.gz: ad4435464ba38b3a8fa09e92dd79a980f31dfe8ca8880aa976e6ceeb27ccf6e66a9ee44ae2c41906b8312b40289234dc0efc78fda9c0300df3b7cfe0da463f81
@@ -344,6 +344,7 @@ module Bake
344
344
  end
345
345
 
346
346
  def set_threads(num)
347
+ return if num == nil # -j without number shall behave the same as not set
347
348
  checkNum(num)
348
349
  @threads = String === num ? num.to_i : num
349
350
  if @threads <= 0
@@ -561,7 +561,14 @@ module Bake
561
561
  icf = integrateCompilerFile(Utils.deep_copy(@block.tcs),sources)
562
562
  end
563
563
  res.each do |f|
564
- @fileTcs[f] = icf if !@fileTcs.has_key?(f)
564
+ if @fileTcs.has_key?(f)
565
+ singleFile = res.length == 1 && res[0] == pr
566
+ if singleFile && icf
567
+ Bake.formatter.printWarning("Flags/Defines for '#{sources.name}' will be ignored", sources)
568
+ end
569
+ else
570
+ @fileTcs[f] = icf
571
+ end
565
572
  next if exclude_files.include?(f)
566
573
  next if source_files.include?(f)
567
574
  source_files << f
@@ -180,7 +180,7 @@ module Bake
180
180
  else
181
181
  ToCxx.linkBlock
182
182
 
183
- BlockBase.prepareOutput(@exe_name, @block)
183
+ BlockBase.prepareOutput(File.expand_path(@exe_name,@projectDir), @block)
184
184
 
185
185
  printCmd(cmdLinePrint, "Linking #{@projectName} (#{@config.name}): #{@exe_name}", reason, false)
186
186
  BlockBase.writeCmdLineFile(cmd, cmdLineFile)
@@ -76,12 +76,16 @@ module Bake
76
76
  else
77
77
  option, inPlaceArg = get_block(arg)
78
78
  hasArgument = (pos+1 < @argv.length and @argv[pos+1][0] != "-")
79
- if option.parameters.length == 3 && (hasArgument || inPlaceArg)
80
- if inPlaceArg
81
- option.call(inPlaceArg, nil, nil)
79
+ if option.parameters.length == 3
80
+ if (hasArgument || inPlaceArg)
81
+ if inPlaceArg
82
+ option.call(inPlaceArg, nil, nil)
83
+ else
84
+ option.call(@argv[pos+1], nil, nil) # do not use inplace value
85
+ pos = pos + 1
86
+ end
82
87
  else
83
- option.call(@argv[pos+1], nil, nil) # do not use inplace value
84
- pos = pos + 1
88
+ option.call(nil, nil, nil)
85
89
  end
86
90
  elsif option.parameters.length == 2
87
91
  if hasArgument
@@ -1,7 +1,7 @@
1
1
  module Bake
2
2
  class Version
3
3
  def self.number
4
- "2.57.0"
4
+ "2.58.0"
5
5
  end
6
6
 
7
7
  def self.printBakeVersion(ry = "")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.57.0
4
+ version: 2.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Schaal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-24 00:00:00.000000000 Z
11
+ date: 2020-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rtext