scons: fix mingw32 cross-compile
Made check for PNG support in SDL always succeed for cross-compile scenarios because it requires running a test program.
This commit is contained in:
parent
95e88fa294
commit
8a8bc9041b
1 changed files with 3 additions and 0 deletions
|
@ -131,6 +131,9 @@ def CheckPNG(context):
|
|||
\n
|
||||
'''
|
||||
context.Message("Checking for PNG support in SDL... ")
|
||||
if context.env["host"]:
|
||||
context.Result("n/a (cross-compile)")
|
||||
return True
|
||||
(result, output) = context.TryRun(test_program, ".c")
|
||||
if result:
|
||||
context.Result("yes")
|
||||
|
|
Loading…
Add table
Reference in a new issue