瀏覽代碼

fix: `clangd: -32001: invalid AST` (#4164)

Ignore the `-march=*` in `compile_commands.json` which causes issues in
Neovim on Apple M2. This fix is from this
[comment](https://github.com/clangd/clangd/issues/1582#issuecomment-1500031372)
Brymer Meneses 1 年之前
父節點
當前提交
bf1106fc34
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      .clangd

+ 7 - 0
.clangd

@@ -0,0 +1,7 @@
+# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
+# Exceptions. See /LICENSE for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+CompileFlags:
+  # Workaround for https://github.com/clangd/clangd/issues/1582
+  Remove: [-march=*]