소스 검색

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 년 전
부모
커밋
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"]),
                 ],
             ),
         ],