lib/blocks/compile.rb in bake-toolkit-2.56.0 vs lib/blocks/compile.rb in bake-toolkit-2.57.0
- old
+ new
@@ -173,11 +173,11 @@
reason = config_changed?(cmdLineFile)
end
Thread.current[:filelist].add(File.expand_path(source, @projectDir)) if Bake.options.filelist
- if @fileTcs.include?(source)
+ if @fileTcs[source]
compiler = @fileTcs[source][:COMPILER][type]
defines = getDefines(compiler)
flags = getFlags(compiler)
else
compiler = @block.tcs[:COMPILER][type]
@@ -559,10 +559,10 @@
end
if (sources.define.length > 0 or sources.flags.length > 0)
icf = integrateCompilerFile(Utils.deep_copy(@block.tcs),sources)
end
res.each do |f|
- @fileTcs[f] = icf if icf && !@fileTcs.has_key?(f)
+ @fileTcs[f] = icf if !@fileTcs.has_key?(f)
next if exclude_files.include?(f)
next if source_files.include?(f)
source_files << f
@source_files << f
@source_files_ignored_in_lib << f if sources.compileOnly
\ No newline at end of file