- compile in separate pass from mock generation to avoid multiple compilation

git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@211 bf332499-1b4d-0410-844d-d2d48d5cc64c
This commit is contained in:
mvandervoord
2011-03-09 01:43:18 +00:00
parent cc5da75730
commit 0497a4e7e4
+5 -1
View File
@@ -192,7 +192,11 @@ module RakefileHelpers
@cmock.setup_mocks([$cfg['compiler']['source_path']+header.gsub('Mock','')])
end
# Compile corresponding source file if it exists
end
#compile all mocks
header_list.each do |header|
#compile source file header if it exists
src_file = find_source_file(header, include_dirs)
if !src_file.nil?
compile(src_file, test_defines)