Skip to content

Commit

Permalink
Reformat Preset files (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 authored Feb 18, 2024
1 parent 09c7ee9 commit 7f4f8c4
Show file tree
Hide file tree
Showing 7 changed files with 744 additions and 1,298 deletions.
1,309 changes: 11 additions & 1,298 deletions CMakePresets.json

Large diffs are not rendered by default.

105 changes: 105 additions & 0 deletions cmake/presets/CMakeLinuxBuildPresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
{
"version": 6,
"include": [
"CMakeLinuxGccConfigPresets.json",
"CMakeLinuxClangConfigPresets.json"
],
"buildPresets": [
{
"name": "linux_gcc_cpu_release_asan",
"configurePreset": "linux_gcc_cpu_release_asan"
},
{
"name": "linux_gcc_cpu_debug_asan",
"configurePreset": "linux_gcc_cpu_debug_asan"
},
{
"name": "linux_gcc_cpu_relwithdebinfo_asan",
"configurePreset": "linux_gcc_cpu_relwithdebinfo_asan"
},
{
"name": "linux_gcc_cpu_minsizerel_asan",
"configurePreset": "linux_gcc_cpu_minsizerel_asan"
},
{
"name": "linux_gcc_cpu_release",
"configurePreset": "linux_gcc_cpu_release"
},
{
"name": "linux_gcc_cpu_debug",
"configurePreset": "linux_gcc_cpu_debug"
},
{
"name": "linux_gcc_cpu_relwithdebinfo",
"configurePreset": "linux_gcc_cpu_relwithdebinfo"
},
{
"name": "linux_gcc_cpu_minsizerel",
"configurePreset": "linux_gcc_cpu_minsizerel"
},
{
"name": "linux_clang_cpu_release_asan",
"configurePreset": "linux_clang_cpu_release_asan"
},
{
"name": "linux_clang_cpu_debug_asan",
"configurePreset": "linux_clang_cpu_debug_asan"
},
{
"name": "linux_clang_cpu_relwithdebinfo_asan",
"configurePreset": "linux_clang_cpu_relwithdebinfo_asan"
},
{
"name": "linux_clang_cpu_minsizerel_asan",
"configurePreset": "linux_clang_cpu_minsizerel_asan"
},
{
"name": "linux_clang_cpu_release",
"configurePreset": "linux_clang_cpu_release"
},
{
"name": "linux_clang_cpu_debug",
"configurePreset": "linux_clang_cpu_debug"
},
{
"name": "linux_clang_cpu_relwithdebinfo",
"configurePreset": "linux_clang_cpu_relwithdebinfo"
},
{
"name": "linux_clang_cpu_minsizerel",
"configurePreset": "linux_clang_cpu_minsizerel"
},
{
"name": "linux_gcc_cuda_release_asan",
"configurePreset": "linux_gcc_cuda_release_asan"
},
{
"name": "linux_gcc_cuda_debug_asan",
"configurePreset": "linux_gcc_cuda_debug_asan"
},
{
"name": "linux_gcc_cuda_relwithdebinfo_asan",
"configurePreset": "linux_gcc_cuda_relwithdebinfo_asan"
},
{
"name": "linux_gcc_cuda_minsizerel_asan",
"configurePreset": "linux_gcc_cuda_minsizerel_asan"
},
{
"name": "linux_gcc_cuda_release",
"configurePreset": "linux_gcc_cuda_release"
},
{
"name": "linux_gcc_cuda_debug",
"configurePreset": "linux_gcc_cuda_debug"
},
{
"name": "linux_gcc_cuda_relwithdebinfo",
"configurePreset": "linux_gcc_cuda_relwithdebinfo"
},
{
"name": "linux_gcc_cuda_minsizerel",
"configurePreset": "linux_gcc_cuda_minsizerel"
}
]
}
87 changes: 87 additions & 0 deletions cmake/presets/CMakeLinuxClangConfigPresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"version": 6,
"include": [
"CMakeLinuxDefaultConfigPresets.json"
],
"configurePresets": [
{
"name": "linux_clang_cpu_release_asan",
"displayName": "linux clang cpu release asan",
"inherits": [
"linux_clang_asan_default",
"linux_release_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/release"
},
{
"name": "linux_clang_cpu_debug_asan",
"displayName": "linux clang cpu debug asan",
"inherits": [
"linux_clang_asan_default",
"linux_debug_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS": "-ggdb3 -O0 -fsanitize=address",
"CMAKE_CXX_FLAGS": "-ggdb3 -O0 -fsanitize=address"
}
},
{
"name": "linux_clang_cpu_relwithdebinfo_asan",
"displayName": "linux clang cpu relwithdebinfo asan",
"inherits": [
"linux_clang_asan_default",
"linux_relwithdebinfo_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/relwithdebinfo"
},
{
"name": "linux_clang_cpu_minsizerel_asan",
"displayName": "linux clang cpu minsizerel asan",
"inherits": [
"linux_clang_default",
"linux_MinSizeRel_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/minsizerel",
"cacheVariables": {}
},
{
"name": "linux_clang_cpu_release",
"displayName": "linux clang cpu release",
"inherits": [
"linux_clang_default",
"linux_release_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/release"
},
{
"name": "linux_clang_cpu_debug",
"displayName": "linux clang cpu debug",
"inherits": [
"linux_clang_default",
"linux_debug_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/debug"
},
{
"name": "linux_clang_cpu_relwithdebinfo",
"displayName": "linux clang cpu relwithdebinfo",
"inherits": [
"linux_clang_default",
"linux_relwithdebinfo_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/relwithdebinfo"
},
{
"name": "linux_clang_cpu_minsizerel",
"displayName": "linux clang cpu minsizerel",
"inherits": [
"linux_clang_default",
"linux_MinSizeRel_default"
],
"binaryDir": "${sourceDir}/build/clang_cpu/minsizerel",
"cacheVariables": {}
}
]
}
88 changes: 88 additions & 0 deletions cmake/presets/CMakeLinuxDefaultConfigPresets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"version": 6,
"configurePresets": [
{
"name": "linux_gcc_default",
"generator": "Ninja",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack",
"CMAKE_MODULE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack",
"CMAKE_POSITION_INDEPENDENT_CODE": "ON",
"USE_CUDA": "OFF"
},
"environment": {
"CC": "gcc",
"CXX": "g++"
},
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
},
{
"name": "linux_clang_default",
"inherits": "linux_gcc_default",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -L\\usr\\lib64\\x86_64-unknown-linux-gnu",
"CMAKE_MODULE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -L\\usr\\lib64\\x86_64-unknown-linux-gnu",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -L\\usr\\lib64\\x86_64-unknown-linux-gnu"
},
"environment": {
"CC": "clang",
"CXX": "clang++"
}
},
{
"name": "linux_gcc_asan_default",
"inherits": "linux_gcc_default",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fsanitize=address",
"CMAKE_MODULE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fsanitize=address",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fsanitize=address"
}
},
{
"name": "linux_clang_asan_default",
"inherits": "linux_gcc_default",
"cacheVariables": {
"CMAKE_EXE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fsanitize=address -L\\usr\\lib64\\x86_64-unknown-linux-gnu",
"CMAKE_MODULE_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fsanitize=address -L\\usr\\lib64\\x86_64-unknown-linux-gnu",
"CMAKE_SHARED_LINKER_FLAGS_INIT": "-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -fsanitize=address -L\\usr\\lib64\\x86_64-unknown-linux-gnu"
}
},
{
"name": "linux_release_default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_C_FLAGS": "-DNDEBUG -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -O3 -pipe",
"CMAKE_CXX_FLAGS": "-DNDEBUG -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -O3 -pipe"
}
},
{
"name": "linux_relwithdebinfo_default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
"CMAKE_C_FLAGS": "-DNDEBUG -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -O3 -pipe -ggdb3",
"CMAKE_CXX_FLAGS": "-DNDEBUG -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -O3 -pipe -ggdb3"
}
},
{
"name": "linux_debug_default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug",
"CMAKE_C_FLAGS": "-ggdb3 -O0",
"CMAKE_CXX_FLAGS": "-ggdb3 -O0 -D_GLIBCXX_DEBUG"
}
},
{
"name": "linux_MinSizeRel_default",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "MinSizeRel",
"CMAKE_C_FLAGS": "-DNDEBUG -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Os -pipe -ggdb3",
"CMAKE_CXX_FLAGS": "-DNDEBUG -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -Os -pipe -ggdb3"
}
}
]
}
Loading

0 comments on commit 7f4f8c4

Please sign in to comment.