X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..3903760236c30e3b5ace7a4eefac3a269d68957c:/bsd/conf/Makefile.x86_64 diff --git a/bsd/conf/Makefile.x86_64 b/bsd/conf/Makefile.x86_64 index 83b41e2dd..c397a6e9b 100644 --- a/bsd/conf/Makefile.x86_64 +++ b/bsd/conf/Makefile.x86_64 @@ -1,49 +1,16 @@ ###################################################################### #BEGIN Machine dependent Makefile fragment for x86_64 ###################################################################### - -# files to build with certain warnings turned off + +# Files to build with certain warnings turned off dis_tables.o_CFLAGS_ADD += -Wno-cast-qual fbt_x86.o_CFLAGS_ADD += -Wno-cast-qual - -# Enable -Werror for x86_64 builds -CFLAGS+=$(WERROR) -CWARNFLAGS= $(filter-out -Wbad-function-cast, $(CWARNFLAGS_STD)) - -# Objects that don't compile cleanly: -OBJS_NO_WERROR = \ - fifo_vnops.o \ - aescrypt.o \ - aeskey.o \ - des_setkey.o \ - sha2.o \ - if_ethersubr.o \ - if_media.o \ - kext_net.o \ - dhcp_options.o \ - in_bootp.o \ - krpc_subr.o \ - ux_exception.o \ - unix_startup.o \ - randomdev.o \ - vnode_pager.o \ - dp_backing_file.o \ - vm_unix.o \ - mem.o \ - km.o \ - init_sysent.o \ - drv_dep.o \ - sdt_x86.o \ - dtrace_isa.o \ - aes_modes.o - - -OBJS_WERROR=$(filter-out $(OBJS_NO_WERROR),$(OBJS)) - -$(OBJS_WERROR): WERROR=-Werror +# Inline assembly doesn't interact well with LTO +fbt_x86.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG) +# Taking the address of labels doesn't work with LTO (9524055) +dtrace.o_CFLAGS_ADD += $(CFLAGS_NOLTO_FLAG) ###################################################################### #END Machine dependent Makefile fragment for x86_64 ###################################################################### -