]> git.armaanb.net Git - config.org.git/commitdiff
ash: use clang as CC
authorArmaan Bhojwani <me@armaanb.net>
Mon, 28 Jun 2021 23:43:20 +0000 (19:43 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Thu, 1 Jul 2021 00:06:54 +0000 (20:06 -0400)
config.org

index bd1411261c15f39579fe5b94663e8f0c28433cbf..4975fed4a6b5deb21ab23ad05ef99ee933f8c040 100644 (file)
@@ -930,8 +930,10 @@ Use the vi editing mode. I still haven't found a good way to show visual feedbac
 #+end_src
 **** Compilation flags
 #+begin_src shell :tangle ~/.config/ash/ashrc
 #+end_src
 **** Compilation flags
 #+begin_src shell :tangle ~/.config/ash/ashrc
+  export CC=clang
   export CFLAGS="-O3 -pipe -march=native"
   export CFLAGS="-O3 -pipe -march=native"
-  export CXXFLAGS="$CFLAGS"
+  export CXX=clang++
+  export CXXFLAGS="$CFLAGS -stdlib=libc++"
   export MAKEFLAGS="-j$(nproc)"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
 #+end_src
   export MAKEFLAGS="-j$(nproc)"
   export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig"
 #+end_src