From 5663872c7c1fb1120faf7cee726535e8ec88867e Mon Sep 17 00:00:00 2001 From: bztdlinux Date: Thu, 27 May 2010 22:19:16 +0000 Subject: [PATCH] Avoid newline errors, will cause library checks to fail otherwise if -Werror is on. Dunno why this is in our code, I think scons has this built in ? git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5521 8ced0084-cf51-0410-be5f-012b33b47a6e --- SconsTests/utils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SconsTests/utils.py b/SconsTests/utils.py index 9b0ce04930..88c01d839c 100644 --- a/SconsTests/utils.py +++ b/SconsTests/utils.py @@ -6,7 +6,7 @@ def filterWarnings(self, flags): return ' '.join( flag for flag in flags - if not flag.startswith('-W') +# if not flag.startswith('-W') ) # taken from scons wiki @@ -26,7 +26,7 @@ def CheckFramework(context, name): int main(int argc, char **argv) { return 0; } - """, '.c') + """ + '\n', '.c') if not ret: context.env.Replace(FRAMEWORKS = lastFRAMEWORKS ) @@ -72,8 +72,8 @@ def CheckLib(context, name): ret = context.TryLink(""" int main(int argc, char **argv) { return 0; - } - """,'.c') + } + """ + '\n','.c') if not ret: context.env.Replace(LIBS = lastLIBS) @@ -130,7 +130,7 @@ def CheckPortaudio(context, version): printf("%d", Pa_GetVersion()); return 0; } - """, '.c')[1] + """ + '\n', '.c')[1] if found: ret = (version <= found)