mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
more readme formatting
This commit is contained in:
parent
39c1348862
commit
74b1665586
1 changed files with 6 additions and 3 deletions
|
|
@ -100,9 +100,12 @@ undefined reference to `_ZNK4llvm17SubtargetFeatures9getStringB5cxx11Ev'
|
|||
undefined reference to `llvm::SubtargetFeatures::getString() const'
|
||||
```
|
||||
|
||||
This is because of [C++'s Dual ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html).
|
||||
This is because of
|
||||
[C++'s Dual ABI](https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_dual_abi.html).
|
||||
Most likely LLVM was compiled with one compiler while Zig was compiled with a
|
||||
different one, for example GCC vs clang.
|
||||
|
||||
To fix this, compile Zig with the same compiler that LLVM was compiled with, or
|
||||
add `-DZIG_LLVM_OLD_CXX_ABI=yes` to the cmake configure line.
|
||||
To fix this, you have 2 options:
|
||||
|
||||
* Compile Zig with the same compiler that LLVM was compiled with.
|
||||
* Add `-DZIG_LLVM_OLD_CXX_ABI=yes` to the cmake configure line.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue