mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
configure: Add --with-optimize-option, for setting the default value of
OPTIMIZE_OPTION. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86005 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -607,6 +607,23 @@ if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
|
||||
AC_MSG_ERROR([Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used]);
|
||||
fi
|
||||
|
||||
dnl Override the option to use for optimized builds.
|
||||
AC_ARG_WITH(optimize-option,
|
||||
AS_HELP_STRING([--with-optimize-option],
|
||||
[Select the compiler options to use for optimized builds]),,
|
||||
withval=default)
|
||||
AC_MSG_CHECKING([optimization flags])
|
||||
case "$withval" in
|
||||
default)
|
||||
case "$llvm_cv_os_type" in
|
||||
MingW) optimize_option=-O3 ;;
|
||||
*) optimize_option=-O2 ;;
|
||||
esac ;;
|
||||
*) optimize_option="$withval" ;;
|
||||
esac
|
||||
AC_SUBST(OPTIMIZE_OPTION,$optimize_option)
|
||||
AC_MSG_RESULT([$optimize_option])
|
||||
|
||||
dnl Specify extra build options
|
||||
AC_ARG_WITH(extra-options,
|
||||
AS_HELP_STRING([--with-extra-options],
|
||||
|
Reference in New Issue
Block a user