Skip to content

Commit dc931d1

Browse files
committed
Specify C++14 standard for nixpkgs cc toolchain
1 parent 591f4e4 commit dc931d1

File tree

12 files changed

+12
-0
lines changed

12 files changed

+12
-0
lines changed

examples/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
3939
nixpkgs_cc_configure(
4040
# Don't override the default cc toolchain needed for bindist mode.
4141
name = "nixpkgs_config_cc",
42+
cc_std = "c++14",
4243
repository = "@rules_haskell//nixpkgs:default.nix",
4344
)
4445

examples/arm/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ nixpkgs_cc_configure(
5757
nixpkgs_cc_configure(
5858
name = "nixpkgs_config_cc_arm",
5959
attribute_path = "cc-aarch64",
60+
cc_std = "c++14",
6061
exec_constraints = [
6162
"@platforms//cpu:x86_64",
6263
"@platforms//os:linux",

non_module_dev_deps.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ def repositories(*, bzlmod):
103103
name = "nixpkgs_config_cc",
104104
repository = "@nixpkgs_default",
105105
register = not bzlmod,
106+
cc_std = "c++14",
106107
)
107108

108109
nixpkgs_package(

rules_haskell_tests/non_module_deps_1.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ filegroup(
8989
name = "nixpkgs_config_cc",
9090
repository = "@nixpkgs_default",
9191
register = not bzlmod,
92+
cc_std = "c++14",
9293
)
9394

9495
rules_haskell_asterius_toolchains(

rules_haskell_tests/tests/ghcWithPackages_2097/test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ load(
2424

2525
nixpkgs_cc_configure(
2626
name = "nixpkgs_config_cc",
27+
cc_std = "c++14",
2728
repository = "@rules_haskell//nixpkgs:default.nix",
2829
)
2930

rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_cross_library_deps_test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
4040

4141
nixpkgs_cc_configure(
4242
name = "nixpkgs_config_cc",
43+
cc_std = "c++14",
4344
repository = "@rules_haskell//nixpkgs:default.nix",
4445
)
4546

rules_haskell_tests/tests/haskell_module/repl/haskell_module_repl_test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ load("@rules_nixpkgs_python//:python.bzl", "nixpkgs_python_configure")
4141

4242
nixpkgs_cc_configure(
4343
name = "nixpkgs_config_cc",
44+
cc_std = "c++14",
4445
repository = "@rules_haskell//nixpkgs:default.nix",
4546
)
4647

rules_haskell_tests/tests/repl-targets/hs_bin_repl_test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ load(
3434

3535
nixpkgs_cc_configure(
3636
name = "nixpkgs_config_cc",
37+
cc_std = "c++14",
3738
repository = "@rules_haskell//nixpkgs:default.nix",
3839
)
3940

rules_haskell_tests/tests/repl-targets/hs_lib_repl_test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ load(
4343

4444
nixpkgs_cc_configure(
4545
name = "nixpkgs_config_cc",
46+
cc_std = "c++14",
4647
repository = "@rules_haskell//nixpkgs:default.nix",
4748
)
4849

rules_haskell_tests/tests/stack-snapshot-deps/hs_override_stack_test/WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ load(
3434

3535
nixpkgs_cc_configure(
3636
name = "nixpkgs_config_cc",
37+
cc_std = "c++14",
3738
repository = "@rules_haskell//nixpkgs:default.nix",
3839
)
3940

0 commit comments

Comments
 (0)