Skip to content

Commit

Permalink
Use ENV to store flang option
Browse files Browse the repository at this point in the history
  • Loading branch information
yohanchatelain committed Apr 17, 2024
1 parent 0913fa3 commit 3e2a88c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,12 @@ ENV CXX=g++-${GCC_VERSION}
COPY . /build/verificarlo/
WORKDIR /build/verificarlo

RUN echo ./autogen.sh && \
./configure \
--with-llvm=$(llvm-config-${LLVM_VERSION} --prefix) \
$( [[ "$WITH_FLANG" = "flang" ]] && echo "--with-flang" || echo "--without-flang" )
ENV FLANG_OPTION $( [[ "$WITH_FLANG" = "flang" ]] && echo "--with-flang" || echo "--without-flang" )

RUN { ./autogen.sh && \
./configure \
--with-llvm=$(llvm-config-${LLVM_VERSION} --prefix) \
$( [[ "$WITH_FLANG" = "flang" ]] && echo "--with-flang" || echo "--without-flang" ) ; } \
${FLANG_OPTION} ; } \
|| { cat config.log; exit 1; }


Expand Down

0 comments on commit 3e2a88c

Please sign in to comment.