mirror of
https://github.com/theoludwig/programming-challenges.git
synced 2025-05-18 12:02:53 +02:00
perf: use optimization options for Rust and gcc
This commit is contained in:
@ -2,6 +2,6 @@ FROM gcc:12.2.0
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
RUN gcc ./*.c* -o solution.exe -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors
|
||||
RUN gcc ./*.c* -o solution.exe -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c17 -pedantic -pedantic-errors -O3
|
||||
|
||||
CMD ["./solution.exe"]
|
||||
|
@ -2,6 +2,6 @@ FROM gcc:12.2.0
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
RUN g++ ./*.cpp* -o solution.exe -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c++17 -pedantic -pedantic-errors
|
||||
RUN g++ ./*.cpp* -o solution.exe -Wall -Wextra -Wfloat-equal -Wundef -Werror -std=c++17 -pedantic -pedantic-errors -O3
|
||||
|
||||
CMD ["./solution.exe"]
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM dart:2.17.7
|
||||
FROM dart:2.18.1
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM openjdk:17
|
||||
FROM openjdk:19
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
|
@ -1,7 +1,7 @@
|
||||
FROM rust:1.63.0
|
||||
FROM rust:1.64.0
|
||||
|
||||
WORKDIR /usr/app
|
||||
COPY ./ /usr/app
|
||||
RUN rustc solution.rs
|
||||
RUN rustc -C debuginfo=0 -C opt-level=3 -C target-cpu=native solution.rs
|
||||
|
||||
CMD ["./solution"]
|
||||
|
Reference in New Issue
Block a user