Jelajahi Sumber

Added clang notes.

bugz 4 tahun lalu
induk
melakukan
a6db75cee1
1 mengubah file dengan 23 tambahan dan 0 penghapusan
  1. 23 0
      clang.md

+ 23 - 0
clang.md

@@ -0,0 +1,23 @@
+
+# Using clang
+
+```
+export CC=clang-6.0
+export CXX=clang++-6.0
+rm CMakeCache.txt
+cmake .
+```
+
+Then make like "normal".
+
+Where normal is getting things like:
+
+    Invalid opcode
+
+?!? What the smeg ?!?
+
+Also, *apparently* it takes different settings to
+tell clang to make a debug build.  It doesn't
+with our config.  Debugging invalid opcode was
+pretty much impossible.
+