loliOS icon indicating copy to clipboard operation
loliOS copied to clipboard

UBSan doesn't work with clang

Open apsun opened this issue 3 years ago • 0 comments

clang seems to insist on linking in the system libubsan even when we're compiling with -nostdlib.

Current workaround is to link the final executable with ld instead of cc when not using LTO, but that complicates our Makefile since the flags are different.

apsun avatar Oct 02 '21 03:10 apsun