add tsan
This commit is contained in:
parent
0054c3b0cd
commit
610ec87cf3
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
arch: [x86_64]
|
arch: [x86_64]
|
||||||
mode: [asan, debug, releasedbg]
|
mode: [asan, tsan, debug, releasedbg]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
if: "!contains(github.event.head_commit.message, 'ci skip')"
|
||||||
|
|
|
||||||
|
|
@ -152,7 +152,7 @@ if is_plat("macosx") then
|
||||||
add_requires("libx11")
|
add_requires("libx11")
|
||||||
end
|
end
|
||||||
|
|
||||||
add_rules("mode.asan", "mode.coverage", "mode.debug", "mode.releasedbg")
|
add_rules("mode.asan", "mode.tsan", "mode.coverage", "mode.debug", "mode.releasedbg")
|
||||||
add_rules("plugin.vsxmake.autoupdate")
|
add_rules("plugin.vsxmake.autoupdate")
|
||||||
add_rules("build.rendererplugins")
|
add_rules("build.rendererplugins")
|
||||||
add_rules("download.assets.examples")
|
add_rules("download.assets.examples")
|
||||||
|
|
@ -163,13 +163,15 @@ end
|
||||||
|
|
||||||
set_allowedplats("windows", "mingw", "linux", "macosx")
|
set_allowedplats("windows", "mingw", "linux", "macosx")
|
||||||
set_allowedarchs("windows|x64", "mingw|x86_64", "linux|x86_64", "macosx|x86_64")
|
set_allowedarchs("windows|x64", "mingw|x86_64", "linux|x86_64", "macosx|x86_64")
|
||||||
set_allowedmodes("debug", "releasedbg", "asan", "coverage")
|
set_allowedmodes("debug", "releasedbg", "asan", "tsan", "coverage")
|
||||||
set_defaultmode("debug")
|
set_defaultmode("debug")
|
||||||
|
|
||||||
if is_mode("debug") then
|
if is_mode("debug") then
|
||||||
add_rules("debug.suffix")
|
add_rules("debug.suffix")
|
||||||
elseif is_mode("asan") then
|
elseif is_mode("asan") then
|
||||||
set_optimize("none") -- by default xmake will optimize asan builds
|
set_optimize("none") -- by default xmake will optimize asan builds
|
||||||
|
elseif is_mode("tsan") then
|
||||||
|
set_optimize("none") -- by default xmake will optimize asan builds
|
||||||
elseif is_mode("coverage") then
|
elseif is_mode("coverage") then
|
||||||
if not is_plat("windows") then
|
if not is_plat("windows") then
|
||||||
add_links("gcov")
|
add_links("gcov")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue