1.1 --- a/AMBuildScript Sat Apr 14 00:31:50 2012 +0100
1.2 +++ b/AMBuildScript Sat Apr 14 01:12:24 2012 +0100
1.3 @@ -2,7 +2,6 @@
1.4 import os
1.5 import sys
1.6 from ambuild.command import SymlinkCommand
1.7 -from ambuild.command import ShellCommand
1.8
1.9 class SM:
1.10 def __init__(self):
1.11 @@ -115,7 +114,6 @@
1.12 self.compiler.AddToListVar('CFLAGS', '-Wno-switch')
1.13 self.compiler.AddToListVar('CFLAGS', '-msse')
1.14 self.compiler.AddToListVar('CFLAGS', '-m32')
1.15 - self.compiler.AddToListVar('CFLAGS', '-g3')
1.16 self.compiler.AddToListVar('POSTLINKFLAGS', '-m32')
1.17 self.compiler.AddToListVar('CXXFLAGS', '-fno-exceptions')
1.18 self.compiler.AddToListVar('CXXFLAGS', '-fno-rtti')
1.19 @@ -175,7 +173,9 @@
1.20 if AMBuild.options.debug == '1':
1.21 self.compiler.AddToListVar('CDEFINES', 'DEBUG')
1.22 self.compiler.AddToListVar('CDEFINES', '_DEBUG')
1.23 - if self.vendor == 'msvc':
1.24 + if self.vendor == 'gcc' or self.vendor == 'clang':
1.25 + self.compiler.AddToListVar('CFLAGS', '-g3')
1.26 + elif self.vendor == 'msvc':
1.27 self.compiler.AddToListVar('CFLAGS', '/Od')
1.28 self.compiler.AddToListVar('CFLAGS', '/RTC1')
1.29
1.30 @@ -259,19 +259,6 @@
1.31 else:
1.32 return
1.33
1.34 - def StripBinary(self, job, binary):
1.35 - workFolder = os.path.join(AMBuild.outputFolder, job.workFolder)
1.36 - src = os.path.join('..', workFolder, binary.binaryFile)
1.37 - if not binary.NeedsRelink(src):
1.38 - return;
1.39 - if AMBuild.target['platform'] == 'linux':
1.40 - job.AddCommand(ShellCommand('objcopy --only-keep-debug ' + src + ' ' + src + '.dbg'))
1.41 - job.AddCommand(ShellCommand('objcopy --strip-debug ' + src))
1.42 - job.AddCommand(ShellCommand('objcopy --add-gnu-debuglink=' + src + '.dbg ' + src))
1.43 - elif AMBuild.target['platform'] == 'darwin':
1.44 - job.AddCommand(ShellCommand('dsymutil ' + src))
1.45 - job.AddCommand(ShellCommand('strip -S ' + src))
1.46 -
1.47 def PreSetupHL2Job(self, job, builder, sdk):
1.48 info = self.sdkInfo[sdk]
1.49 sdkPath = AMBuild.cache[info['sdk']]