OSDN Git Service

Add default compiler flags for clang.
authorrelan <relan@users.noreply.github.com>
Sun, 29 Jan 2012 08:50:52 +0000 (08:50 +0000)
committerrelan <relan@users.noreply.github.com>
Mon, 24 Aug 2015 05:26:14 +0000 (08:26 +0300)
SConstruct

index 6f43128..66ba063 100644 (file)
@@ -36,6 +36,8 @@ if 'CCFLAGS' in os.environ:
 if not conf.env['CCFLAGS']:
        if conf.env['CC'] == 'gcc':
                conf.env.Replace(CCFLAGS = '-Wall -O2 -ggdb')
+       elif conf.env['CC'] == 'clang':
+               conf.env.Replace(CCFLAGS = '-Wall -O2 -g')
 conf.env.Append(CPPDEFINES = {'FUSE_USE_VERSION': 26})
 conf.env.Append(CPPDEFINES = {'_FILE_OFFSET_BITS' : 64})
 # __DARWIN_64_BIT_INO_T=0 define is needed because since Snow Leopard inode