Created
August 6, 2021 14:11
-
-
Save Mic92/0ce93f2974e23f940920d47d495aa86f to your computer and use it in GitHub Desktop.
unwrapped clang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| with import <nixpkgs> {}; | |
| let | |
| gccForLibs = stdenv.cc.cc; | |
| in mkShell { | |
| buildInputs = [ | |
| llvmPackages_11.clang-unwrapped | |
| ]; | |
| disableHardening = true; | |
| CFLAGS = ''-target x86_64-unknown-linux-gnu -resource-dir=${llvmPackages_11.clang}/resource-root -B${gccForLibs}/lib/gcc/${targetPlatform.config}/${gccForLibs.version} -B${llvmPackages_11.clang-unwrapped} --gcc-toolchain=${gccForLibs} -B${stdenv.cc.libc}/lib -idirafter ${stdenv.cc.libc.dev}/include''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment