Issue 164932
Summary [compiler-rt][x86] assert.h not found when trying to build builtins without a libc
Labels libc
Assignees
Reporter quic-k
    I am trying to build compiler-rt builtins for x86-64 without a libc
[job link](https://github.com/qualcomm/eld/actions/runs/18747782314/job/53479202403)

the assert.h include and its uses should probably be guarded by #if defined(__linux__)

the [include line](https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/cpu_model/x86.c#L24) and [assert calls](https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/builtins/cpu_model/x86.c#L1223-L1225) 

I can push a patch if the above sounds fine
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to