clang options file uses more succint dict syntax

This commit is contained in:
Strahinja Val Markovic 2012-08-03 10:26:11 -07:00
parent f120c0ce1c
commit 1fd2515617

View File

@ -43,8 +43,7 @@ def MakeAbsoluteIfRelativePath( path ):
def FlagsForFile( filename ):
results = {}
results[ 'flags' ] = [ MakeAbsoluteIfRelativePath( x ) for x in flags ]
results[ 'do_cache' ] = True
return results
return {
'flags': [ MakeAbsoluteIfRelativePath( x ) for x in flags ],
'do_cache': True
}