CLI: add support for -fno-builtin
This commit is contained in:
@@ -2347,7 +2347,9 @@ pub const DeclGen = struct {
|
||||
if (comp.unwind_tables) {
|
||||
dg.addFnAttr(llvm_fn, "uwtable");
|
||||
}
|
||||
if (comp.bin_file.options.skip_linker_dependencies) {
|
||||
if (comp.bin_file.options.skip_linker_dependencies or
|
||||
comp.bin_file.options.no_builtin)
|
||||
{
|
||||
// The intent here is for compiler-rt and libc functions to not generate
|
||||
// infinite recursion. For example, if we are compiling the memcpy function,
|
||||
// and llvm detects that the body is equivalent to memcpy, it may replace the
|
||||
|
||||
Reference in New Issue
Block a user