Upgrading to the latest premake and adding tool for dumping LLVM json.
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -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)
|
||||
|
||||
2
third_party/premake-core
vendored
2
third_party/premake-core
vendored
Submodule third_party/premake-core updated: 1b2f19fa87...8f0683d823
1
third_party/premake-export-compile-commands
vendored
Submodule
1
third_party/premake-export-compile-commands
vendored
Submodule
Submodule third_party/premake-export-compile-commands added at 846aedb0c4
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.
|
||||
|
||||
Reference in New Issue
Block a user