comment out unused parameters
[hiphop-php.git] / hphp / DEFS
blob7ba700409d7944a8b199dbf98b07eb28c2322422
2 def get_fbcode_platform():
3     return read_config('cxx', 'default_platform')
5 def get_compiler_type(platform):
6     if read_config('cxx#{}'.format(platform), 'cc_type') == 'clang':
7         return 'clang'
8     else:
9         return 'gcc'
11 def is_opt_hhvm_build():
12     buck_out = read_config('project', 'buck_out')
13     return '/opt' in buck_out
15 def is_dev_hhvm_build():
16     return '/dev' in read_config('project', 'buck_out')
18 def is_lto_build(platform):
19     flags = read_config('cxx#{}'.format(platform), 'cxxflags')
20     return " -flto " in flags