Просмотр исходного кода

Fix a typo in the spelling of the libc++ debug macro. (#868)

This should get us actual debugging capabilities.

Also, adopt the better bazel formulation that I forgot to add from
geoffromer's original change.
Chandler Carruth 4 лет назад
Родитель
Сommit
a5cee52239
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      bazel/cc_toolchains/clang_cc_toolchain_config.bzl

+ 2 - 3
bazel/cc_toolchains/clang_cc_toolchain_config.bzl

@@ -528,11 +528,10 @@ def _impl(ctx):
                 actions = all_compile_actions,
                 flag_groups = [flag_group(flags = [
                     # Enable libc++'s debug features.
-                    "-D_LIBCXX_DEBUG=1",
+                    "-D_LIBCPP_DEBUG=1",
                 ])],
                 with_features = [
-                    with_feature_set(features = ["dbg"]),
-                    with_feature_set(features = ["fastbuild"]),
+                    with_feature_set(not_features = ["opt"]),
                 ],
             ),
         ],