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
50eb709439
commit
9bc5b15d5f
1 changed files with 3 additions and 0 deletions
|
@ -114,6 +114,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