Changeset View
Changeset View
Standalone View
Standalone View
Makefile.inc1
Show First 20 Lines • Show All 712 Lines • ▼ Show 20 Lines | BSARGS= DESTDIR= \ | ||||
OBJROOT='$${OBJTOP}/' \ | OBJROOT='$${OBJTOP}/' \ | ||||
MAKEOBJDIRPREFIX= \ | MAKEOBJDIRPREFIX= \ | ||||
BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \ | BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \ | ||||
BWPHASE=${.TARGET:C,^_,,} \ | BWPHASE=${.TARGET:C,^_,,} \ | ||||
SSP_CFLAGS= \ | SSP_CFLAGS= \ | ||||
MK_HTML=no NO_LINT=yes MK_MAN=no MK_MAN_UTILS=yes \ | MK_HTML=no NO_LINT=yes MK_MAN=no MK_MAN_UTILS=yes \ | ||||
-DNO_PIC MK_PROFILE=no -DNO_SHARED \ | -DNO_PIC MK_PROFILE=no -DNO_SHARED \ | ||||
-DNO_CPU_CFLAGS MK_WERROR=no MK_CTF=no \ | -DNO_CPU_CFLAGS MK_WERROR=no MK_CTF=no \ | ||||
MK_ASAN=no MK_UBSAN=no \ | |||||
MK_CLANG_EXTRAS=no MK_CLANG_FORMAT=no MK_CLANG_FULL=no \ | MK_CLANG_EXTRAS=no MK_CLANG_FORMAT=no MK_CLANG_FULL=no \ | ||||
emaste: Do we have any documentation for `BOOTSTRAP_TOOLS_ASAN`/`BOOTSTRAP_TOOLS_UBSAN`? | |||||
Done Inline ActionsNo, I added this as an experimental flag to try and add asan to the bootstrap tools. It won't work yet since there are still quite a few UBSan warnings. Happy to drop it from this commit and just hardcode it to no? arichardson: No, I added this as an experimental flag to try and add asan to the bootstrap tools. It won't… | |||||
Done Inline ActionsYeah I'd leave them out of this jrtc27: Yeah I'd leave them out of this | |||||
MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no \ | MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no \ | ||||
MK_INCLUDES=yes | MK_INCLUDES=yes | ||||
BMAKE= \ | BMAKE= \ | ||||
${TIME_ENV} ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ | ${TIME_ENV} ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ | ||||
${BSARGS} | ${BSARGS} | ||||
.if empty(.MAKEOVERRIDES:MMK_LLVM_TARGET_ALL) | .if empty(.MAKEOVERRIDES:MMK_LLVM_TARGET_ALL) | ||||
BMAKE+= MK_LLVM_TARGET_ALL=no | BMAKE+= MK_LLVM_TARGET_ALL=no | ||||
.endif | .endif | ||||
# build-tools stage | # build-tools stage | ||||
TMAKE= \ | TMAKE= \ | ||||
${TIME_ENV} ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ | ${TIME_ENV} ${BMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \ | ||||
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ | TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ | ||||
DESTDIR= \ | DESTDIR= \ | ||||
BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \ | BOOTSTRAPPING=${BOOTSTRAPPING_OSRELDATE} \ | ||||
BWPHASE=${.TARGET:C,^_,,} \ | BWPHASE=${.TARGET:C,^_,,} \ | ||||
SSP_CFLAGS= \ | SSP_CFLAGS= \ | ||||
-DNO_LINT \ | -DNO_LINT \ | ||||
-DNO_CPU_CFLAGS MK_WERROR=no MK_CTF=no \ | -DNO_CPU_CFLAGS MK_WERROR=no MK_CTF=no \ | ||||
MK_ASAN=no MK_UBSAN=no \ | |||||
MK_CLANG_EXTRAS=no MK_CLANG_FORMAT=no MK_CLANG_FULL=no \ | MK_CLANG_EXTRAS=no MK_CLANG_FORMAT=no MK_CLANG_FULL=no \ | ||||
MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no | MK_LLDB=no MK_RETPOLINE=no MK_TESTS=no | ||||
# cross-tools stage | # cross-tools stage | ||||
# TOOLS_PREFIX set in BMAKE | # TOOLS_PREFIX set in BMAKE | ||||
XMAKE= ${BMAKE} \ | XMAKE= ${BMAKE} \ | ||||
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ | TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \ | ||||
MK_CLANG_IS_CC=${MK_CLANG_BOOTSTRAP} \ | MK_CLANG_IS_CC=${MK_CLANG_BOOTSTRAP} \ | ||||
▲ Show 20 Lines • Show All 2,088 Lines • ▼ Show 20 Lines | ${_+_}cd ${.CURDIR}; \ | ||||
${MAKE} -f Makefile.inc1 _generic_libs | ${MAKE} -f Makefile.inc1 _generic_libs | ||||
# | # | ||||
# static libgcc.a prerequisite for shared libc | # static libgcc.a prerequisite for shared libc | ||||
# | # | ||||
_prereq_libs= lib/libcompiler_rt | _prereq_libs= lib/libcompiler_rt | ||||
.if ${MK_SSP} != "no" | .if ${MK_SSP} != "no" | ||||
_prereq_libs+= lib/libssp_nonshared | _prereq_libs+= lib/libssp_nonshared | ||||
.endif | |||||
.if ${MK_ASAN} != "no" | |||||
_prereq_libs+= lib/libclang_rt/asan | |||||
_prereq_libs+= lib/libclang_rt/asan-preinit | |||||
_prereq_libs+= lib/libclang_rt/asan_cxx | |||||
.endif | |||||
.if ${MK_UBSAN} != "no" | |||||
_prereq_libs+= lib/libclang_rt/ubsan_minimal | |||||
_prereq_libs+= lib/libclang_rt/ubsan_standalone | |||||
_prereq_libs+= lib/libclang_rt/ubsan_standalone_cxx | |||||
.endif | .endif | ||||
# These dependencies are not automatically generated: | # These dependencies are not automatically generated: | ||||
# | # | ||||
# lib/csu and lib/libc must be built before | # lib/csu and lib/libc must be built before | ||||
# all shared libraries for ELF. | # all shared libraries for ELF. | ||||
# | # | ||||
_startup_libs= lib/csu | _startup_libs= lib/csu | ||||
▲ Show 20 Lines • Show All 661 Lines • Show Last 20 Lines |
Do we have any documentation for BOOTSTRAP_TOOLS_ASAN/BOOTSTRAP_TOOLS_UBSAN?