1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-26 18:01:35 +01:00

Fix link errors with MinGW.

MinGW supports a limited form of weak symbols, with the restriction
that weak/default implementations need to be defined in the same
translation unit they are called from.  Strong/overriding symbols
may of course be specified in a different translation unit.
This commit is contained in:
John Lindgren
2017-10-09 10:49:58 -04:00
parent 1381a1a4cb
commit a7e8797e0c
3 changed files with 35 additions and 17 deletions

View File

@@ -158,6 +158,7 @@ class UnityTestRunnerGenerator
create_runtest(output, mocks)
output.puts("\n/*=======Automagically Detected Files To Include=====*/")
output.puts("#include \"#{@options[:framework]}.h\"")
output.puts("#include \"#{@options[:framework]}_setup.h\"")
output.puts('#include "cmock.h"') unless mocks.empty?
output.puts('#include <setjmp.h>')
output.puts('#include <stdio.h>')