diff -r 20e30169cbba -r 8762e8fcbc50 AMBuildScript --- a/AMBuildScript Sat Apr 14 00:31:50 2012 +0100 +++ b/AMBuildScript Sat Apr 14 01:12:24 2012 +0100 @@ -2,7 +2,6 @@ import os import sys from ambuild.command import SymlinkCommand -from ambuild.command import ShellCommand class SM: def __init__(self): @@ -115,7 +114,6 @@ self.compiler.AddToListVar('CFLAGS', '-Wno-switch') self.compiler.AddToListVar('CFLAGS', '-msse') self.compiler.AddToListVar('CFLAGS', '-m32') - self.compiler.AddToListVar('CFLAGS', '-g3') self.compiler.AddToListVar('POSTLINKFLAGS', '-m32') self.compiler.AddToListVar('CXXFLAGS', '-fno-exceptions') self.compiler.AddToListVar('CXXFLAGS', '-fno-rtti') @@ -175,7 +173,9 @@ if AMBuild.options.debug == '1': self.compiler.AddToListVar('CDEFINES', 'DEBUG') self.compiler.AddToListVar('CDEFINES', '_DEBUG') - if self.vendor == 'msvc': + if self.vendor == 'gcc' or self.vendor == 'clang': + self.compiler.AddToListVar('CFLAGS', '-g3') + elif self.vendor == 'msvc': self.compiler.AddToListVar('CFLAGS', '/Od') self.compiler.AddToListVar('CFLAGS', '/RTC1') @@ -259,19 +259,6 @@ else: return - def StripBinary(self, job, binary): - workFolder = os.path.join(AMBuild.outputFolder, job.workFolder) - src = os.path.join('..', workFolder, binary.binaryFile) - if not binary.NeedsRelink(src): - return; - if AMBuild.target['platform'] == 'linux': - job.AddCommand(ShellCommand('objcopy --only-keep-debug ' + src + ' ' + src + '.dbg')) - job.AddCommand(ShellCommand('objcopy --strip-debug ' + src)) - job.AddCommand(ShellCommand('objcopy --add-gnu-debuglink=' + src + '.dbg ' + src)) - elif AMBuild.target['platform'] == 'darwin': - job.AddCommand(ShellCommand('dsymutil ' + src)) - job.AddCommand(ShellCommand('strip -S ' + src)) - def PreSetupHL2Job(self, job, builder, sdk): info = self.sdkInfo[sdk] sdkPath = AMBuild.cache[info['sdk']]