1
0

update ccache configuration for modern cmake

This commit is contained in:
Jip J. Dekker 2023-07-10 09:54:51 +10:00
parent 601cde5930
commit 86e71144ef
No known key found for this signature in database
2 changed files with 46 additions and 9 deletions

View File

@ -32,6 +32,8 @@ $OPTCLUSTER = "compute.optimisation-2020.cloud.edu.au"
#> CMake settings #> CMake settings
$CMAKE_EXPORT_COMPILE_COMMANDS = "1" # output compile-commands.json for clangd $CMAKE_EXPORT_COMPILE_COMMANDS = "1" # output compile-commands.json for clangd
$CMAKE_GENERATOR = "Ninja Multi-Config" # use Ninja generator by default $CMAKE_GENERATOR = "Ninja Multi-Config" # use Ninja generator by default
$CMAKE_C_COMPILER_LAUNCHER = "ccache"
$CMAKE_CXX_COMPILER_LAUNCHER = "ccache"
#> FZF #> FZF
$FZF_DEFAULT_COMMAND = "fd --type f" $FZF_DEFAULT_COMMAND = "fd --type f"

View File

@ -1,9 +1,17 @@
{ {
"clangd.arguments": [
"--compile-commands-dir=./build.nosync/"
],
"clangd.checkUpdates": true,
"cmake.buildDirectory": "${workspaceFolder}/build.nosync", "cmake.buildDirectory": "${workspaceFolder}/build.nosync",
"cmake.configureOnOpen": false, "cmake.configureOnOpen": false,
"cmake.environment": {
"CMAKE_C_COMPILER_LAUNCHER": "ccache",
"CMAKE_CXX_COMPILER_LAUNCHER": "ccache"
},
"cmake.generator": "Ninja Multi-Config", "cmake.generator": "Ninja Multi-Config",
"cmake.installPrefix": "${workspaceFolder}/build.nosync/install", "cmake.installPrefix": "${workspaceFolder}/build.nosync/install",
"editor.fontFamily": "Iosevka Slab, Iosevka, Menlo, Monaco, 'Courier New', monospace", "editor.fontFamily": "'Iosevka Slab', Iosevka, Menlo, Monaco, 'Courier New', monospace",
"editor.fontLigatures": true, "editor.fontLigatures": true,
"editor.fontSize": 14, "editor.fontSize": 14,
"editor.formatOnSave": true, "editor.formatOnSave": true,
@ -13,23 +21,50 @@
"extensions.ignoreRecommendations": true, "extensions.ignoreRecommendations": true,
"files.autoSave": "onWindowChange", "files.autoSave": "onWindowChange",
"files.insertFinalNewline": true, "files.insertFinalNewline": true,
"lldb.consoleMode": "evaluate", "lldb.showDisassembly": "never",
"ltex.additionalRules.enablePickyRules": true, "ltex.additionalRules.enablePickyRules": true,
"ltex.language": "en-GB", "ltex.language": "en-GB",
"python.formatting.blackPath": "/opt/homebrew/bin/black", "python.formatting.blackPath": "/opt/homebrew/bin/black",
"python.formatting.provider": "black", "python.formatting.provider": "black",
"rust-analyzer.debug.engine": "vadimcn.vscode-lldb", "rust-analyzer.debug.engine": "vadimcn.vscode-lldb",
"terminal.external.osxExec": "kitty.app", "terminal.external.osxExec": "kitty.app",
"terminal.integrated.defaultProfile.osx": "xonsh",
"terminal.integrated.profiles.osx": {
"bash": {
"args": [
"-l"
],
"icon": "terminal-bash",
"path": "bash"
},
"fish": {
"args": [
"-l"
],
"path": "fish"
},
"pwsh": {
"icon": "terminal-powershell",
"path": "pwsh"
},
"tmux": {
"icon": "terminal-tmux",
"path": "tmux"
},
"xonsh": {
"path": "xonsh"
},
"zsh": {
"args": [
"-l"
],
"path": "zsh"
}
},
"terminal.integrated.scrollback": 10000, "terminal.integrated.scrollback": 10000,
"terminal.integrated.shell.osx": "xonsh",
"window.autoDetectColorScheme": true, "window.autoDetectColorScheme": true,
"window.commandCenter": true,
"workbench.colorTheme": "Catppuccin Latte", "workbench.colorTheme": "Catppuccin Latte",
"workbench.preferredDarkColorTheme": "Catppuccin Macchiato", "workbench.preferredDarkColorTheme": "Catppuccin Macchiato",
"workbench.preferredLightColorTheme": "Catppuccin Latte", "workbench.preferredLightColorTheme": "Catppuccin Latte",
"workbench.startupEditor": "none", "terminal.integrated.confirmOnExit": "hasChildProcesses",
"clangd.checkUpdates": true,
"clangd.arguments": [
"--compile-commands-dir=./build.nosync/"
],
} }