diff --git a/.gitignore b/.gitignore index 8415de4..3d4962a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ /test_app/ bin/ build/ +dist/ **.spec **__pycache__** \ No newline at end of file diff --git a/src/Premake/Wks.py b/src/Premake/Wks.py index bb9a5c5..086978b 100644 --- a/src/Premake/Wks.py +++ b/src/Premake/Wks.py @@ -8,7 +8,7 @@ def get(name) -> str: { "MultiProcessorCompile" } - + toolset "clang" linkgroups "On" outputdir = "%{cfg.system}-%{cfg.architecture}-%{cfg.buildcfg}" diff --git a/src/ToolChaine.py b/src/ToolChaine.py index 7dc0a68..45e5c37 100644 --- a/src/ToolChaine.py +++ b/src/ToolChaine.py @@ -45,6 +45,8 @@ def build(config) -> None: Log.info("Build with vscode 2022") case "Linux": Command.exec("premake5 gmake2") + Command.exec("premake5 export-compile-commands") + Command.exec(f"mv ./compile_commands/{config.lower()}.json ./compile_commands.json") Command.exec(f"make config={config.lower()}") case _: Log.error("Platform not supported")