Upgrading to the latest premake and adding tool for dumping LLVM json.
This commit is contained in:
parent
a168cdee87
commit
f1ba191634
|
@ -28,3 +28,6 @@
|
|||
[submodule "third_party/snappy"]
|
||||
path = third_party/snappy
|
||||
url = https://github.com/xenia-project/snappy.git
|
||||
[submodule "third_party/premake-export-compile-commands"]
|
||||
path = third_party/premake-export-compile-commands
|
||||
url = https://github.com/xenia-project/premake-export-compile-commands.git
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
include("tools/build")
|
||||
require("third_party/premake-export-compile-commands/export-compile-commands")
|
||||
|
||||
location(build_root)
|
||||
targetdir(build_bin)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 1b2f19fa879d99ebe6dd57789525dc47dacd1c77
|
||||
Subproject commit 8f0683d823963d097cf4bc2958b5f50f35f6456a
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 846aedb0c4c6fe38b50be7a8be06990232892812
|
Binary file not shown.
12
xenia-build
12
xenia-build
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue