update workflow

This commit is contained in:
ArthurSonzogni
2025-04-26 01:25:29 +02:00
parent 2270fe628f
commit 378e30bef0
2 changed files with 12 additions and 1 deletions

View File

@@ -40,6 +40,16 @@ def msvc_copts():
"//conditions:default": [],
})
def pthread_linkopts():
return select({
# With MSVC, threading is already built-in (you don't need -pthread.
"@rules_cc//cc/compiler:msvc-cl": [],
"@rules_cc//cc/compiler:clang-cl": [],
"@rules_cc//cc/compiler:clang": ["-pthread"],
"@rules_cc//cc/compiler:gcc": ["-pthread"],
"//conditions:default": ["-pthread"],
})
def ftxui_cc_library(
name,
srcs,