Skip to content

Commit

Permalink
Merge pull request #281 from Matistjati/rust-compilation
Browse files Browse the repository at this point in the history
Change Rust compilation flags
  • Loading branch information
pehrsoderman authored Jan 16, 2025
2 parents e3a4cc9 + 0580055 commit eb2a746
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions examples/hello/submissions/accepted/hello.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Hello World!");
}
4 changes: 2 additions & 2 deletions problemtools/config/languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ rust:
name: 'Rust'
priority: 575
files: '*.rs'
compile: '/usr/bin/rustc -o{binary} -O --crate-type bin --edition=2018 {files}'
run: '{binary}'
compile: '/usr/bin/rustc -C opt-level=3 -C target-cpu=native --crate-type bin --edition 2021 {mainfile} -o {mainfile}.out'
run: '{mainfile}.out'

scala:
name: 'Scala'
Expand Down

0 comments on commit eb2a746

Please sign in to comment.