Skip to content

Commit

Permalink
Add buck2 CI on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 4, 2023
1 parent 2773c60 commit 230f31b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions tools/buck/toolchains/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ load("@prelude//toolchains:rust.bzl", "system_rust_toolchain")

system_cxx_toolchain(
name = "cxx",
cxx_flags = ["-std=c++17"],
cxx_flags = select({
"config//os:linux": ["-std=c++17"],
"config//os:macos": ["-std=c++17"],
"config//os:windows": [],
}),
linker = "link.exe" if host_info().os.is_windows else None,
link_flags = select({
"DEFAULT": ["-lstdc++"],
"config//os:linux": ["-lstdc++"],
"config//os:macos": ["-lc++"],
"config//os:windows": [],
}),
visibility = ["PUBLIC"],
)
Expand Down

0 comments on commit 230f31b

Please sign in to comment.