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':
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