说起来有些惭愧,我在Ubuntu编译clang后,一个小demo都没编译出来
#include <stdio.h>
int main(){
printf("Hello World!");
return 0;
}
想生成LLVM IR 学习梳理一下。
clang -emit-llvm -S hello.c
报的是个 stddef.h not found
说起来有些惭愧,我在Ubuntu编译clang后,一个小demo都没编译出来
#include <stdio.h>
int main(){
printf("Hello World!");
return 0;
}
想生成LLVM IR 学习梳理一下。
clang -emit-llvm -S hello.c
报的是个 stddef.h not found