Dockerfile.dev: Merge the ssp tests up with an earlier block
This commit is contained in:
1 parent
fb67e16120
commit
c31664aba4
1 file changed
+6
-11
+6
-11
@@ -109,6 +109,12 @@ RUN cd test && \
|
|||||||
$arch-w64-mingw32-widl $test.idl -h -o $arch/$test.h && \
|
$arch-w64-mingw32-widl $test.idl -h -o $arch/$test.h && \
|
||||||
$arch-w64-mingw32-clang $test.c -I$arch -o $arch/$test.exe -lole32 || exit 1; \
|
$arch-w64-mingw32-clang $test.c -I$arch -o $arch/$test.exe -lole32 || exit 1; \
|
||||||
done; \
|
done; \
|
||||||
|
for test in stacksmash; do \
|
||||||
|
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fstack-protector-strong || exit 1; \
|
||||||
|
done; \
|
||||||
|
for test in bufferoverflow; do \
|
||||||
|
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -D_FORTIFY_SOURCE=2 -O2 || exit 1; \
|
||||||
|
done; \
|
||||||
done
|
done
|
||||||
|
|
||||||
# Build C++ test applications
|
# Build C++ test applications
|
||||||
@@ -153,17 +159,6 @@ RUN cd test && \
|
|||||||
done; \
|
done; \
|
||||||
done
|
done
|
||||||
|
|
||||||
RUN cd test && \
|
|
||||||
for arch in $TOOLCHAIN_ARCHS; do \
|
|
||||||
mkdir -p $arch && \
|
|
||||||
for test in stacksmash; do \
|
|
||||||
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -fstack-protector-strong || exit 1; \
|
|
||||||
done; \
|
|
||||||
for test in bufferoverflow; do \
|
|
||||||
$arch-w64-mingw32-clang $test.c -o $arch/$test.exe -D_FORTIFY_SOURCE=2 -O2 || exit 1; \
|
|
||||||
done; \
|
|
||||||
done
|
|
||||||
|
|
||||||
# Build OpenMP
|
# Build OpenMP
|
||||||
COPY build-openmp.sh ./
|
COPY build-openmp.sh ./
|
||||||
RUN ./build-openmp.sh $TOOLCHAIN_PREFIX $CFGUARD_ARGS
|
RUN ./build-openmp.sh $TOOLCHAIN_PREFIX $CFGUARD_ARGS
|
||||||
|
|||||||
Reference in new issue
Block a user