Skip to content

Commit 9279468

Browse files
authored
fix the autoconf script to correctly set CONFIGURE_ARGS (#3263)
fixed the autoconf script to correctly set CONFIGURE_ARGS
1 parent 729b4ae commit 9279468

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

configure.ac

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ AC_INIT([The Flambda backend for OCaml],
2323
[flambda_backend],
2424
[http://github.com/ocaml-flambda/flambda_backend])
2525

26+
27+
## Command-line arguments passed to configure
28+
# This must be set very soon after AC_INIT to avoid other macros from clobbering
29+
# argv
30+
CONFIGURE_ARGS="$*"
31+
2632
DUNE_MAX_VERSION=[3.15]
2733

2834
AC_MSG_NOTICE([Configuring Flambda backend version AC_PACKAGE_VERSION])
@@ -107,9 +113,6 @@ AC_SUBST([main_build_profile])
107113

108114
# Configuration variables
109115

110-
## Command-line arguments passed to configure
111-
CONFIGURE_ARGS="$*"
112-
113116
# Command to build executables
114117
# Ultimately, MKEXE may build an executable using the C compiler or it may use
115118
# a wrapper for a linker (i.e. flexlink). The build system must therefore not

0 commit comments

Comments
 (0)