Upgrading to the latest premake and adding tool for dumping LLVM json.

This commit is contained in:
Ben Vanik
2015-12-31 00:37:13 -08:00
parent a168cdee87
commit f1ba191634
6 changed files with 18 additions and 1 deletions

View File

@@ -329,6 +329,18 @@ def run_platform_premake():
run_premake('linux', 'codelite')
def run_premake_export_commands():
"""Runs premake to generate an LLVM compile_commands.json file.
"""
# TODO(benvanik): only do linux? whatever clang-tidy is ok with.
if sys.platform == 'darwin':
run_premake('macosx', 'export-compile-commands')
elif sys.platform == 'win32':
run_premake('windows', 'export-compile-commands')
else:
run_premake('linux', 'export-compile-commands')
def get_build_bin_path(args):
"""Returns the path of the bin/ path with build results based on the
configuration specified in the parsed arguments.