mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-10-18 04:42:37 +08:00
- switch to old-school hash notation to be backwards compatible with older versions of ruby
This commit is contained in:
@ -130,8 +130,8 @@ class UnityTestRunnerGenerator
|
||||
|
||||
#parse out includes
|
||||
includes = {
|
||||
local: source.scan(/^\s*#include\s+\"\s*(.+)\.[hH]\s*\"/).flatten,
|
||||
system: source.scan(/^\s*#include\s+<\s*(.+)\s*>/).flatten.map { |inc| "<#{inc}>" }
|
||||
:local => source.scan(/^\s*#include\s+\"\s*(.+)\.[hH]\s*\"/).flatten,
|
||||
:system => source.scan(/^\s*#include\s+<\s*(.+)\s*>/).flatten.map { |inc| "<#{inc}>" }
|
||||
}
|
||||
return includes
|
||||
end
|
||||
|
@ -195,6 +195,12 @@ module RakefileHelpers
|
||||
test_files.each do |test|
|
||||
obj_list = []
|
||||
|
||||
if !$cfg['compiler']['aux_sources'].nil?
|
||||
$cfg['compiler']['aux_sources'].each do |aux|
|
||||
obj_list << compile(aux, test_defines)
|
||||
end
|
||||
end
|
||||
|
||||
# Detect dependencies and build required modules
|
||||
extract_headers(test).each do |header|
|
||||
# Compile corresponding source file if it exists
|
||||
|
Reference in New Issue
Block a user