Commit b92e4d8
committed
Set cxxopt with platform-specific syntax
Attempting to use option `--copt=-std=c++17` fails on Windows because
the syntax need to be slightly different: `--copt=/std:c++17`. To
handle these differences between platforms, we can take advantage of
Bazel's `--enable_platform_specific_config` option and define
different build configs for Linux, Windows, and Mac.1 parent b69aa08 commit b92e4d8
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
25 | 40 | | |
26 | 41 | | |
27 | 42 | | |
| |||
0 commit comments