Skip to content

Commit

Permalink
Bazel: fix transition on non-macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
redsun82 committed May 31, 2024
1 parent b3e29bd commit 3f19974
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions swift/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,15 @@ def _transition_impl(settings, attr):
"//command_line_option:cxxopt": [
"-std=c++20",
],
"//command_line_option:linkopt": [],
},
"windows": {
"//command_line_option:copt": [],
"//command_line_option:cxxopt": [
"/std:c++20",
"--cxxopt=/Zc:preprocessor",
],
"//command_line_option:linkopt": [],
},
}[attr.os]

Expand Down

0 comments on commit 3f19974

Please sign in to comment.