projects
/
gruntmaster-daemon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
19f0465
)
Add -lm to C and CPP compilation commands
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 11 Feb 2015 13:24:44 +0000
(15:24 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Wed, 11 Feb 2015 13:24:44 +0000
(15:24 +0200)
gruntmaster-compile
patch
|
blob
|
blame
|
history
diff --git
a/gruntmaster-compile
b/gruntmaster-compile
index be900b9ac565fc4b2f2ac2b757b8f1710ae126c2..5af89b96dfc0dbecc086bc55daa6c118e0c61fa2 100755
(executable)
--- a/
gruntmaster-compile
+++ b/
gruntmaster-compile
@@
-9,8
+9,8
@@
my ($format, $name) = @ARGV;
my $basename = fileparse $name, qr/\..*/;
given ($format){
my $basename = fileparse $name, qr/\..*/;
given ($format){
- exec 'gcc', qw/-DONLINE_JUDGE -std=gnu11 -Wall -Wextra -O2 -o/, $basename, $name when 'C';
- exec 'g++', qw/-DONLINE_JUDGE -std=gnu++11 -Wall -Wextra -O2 -o/, $basename, $name when 'CPP';
+ exec 'gcc', qw/-DONLINE_JUDGE -std=gnu11 -Wall -Wextra -
lm -
O2 -o/, $basename, $name when 'C';
+ exec 'g++', qw/-DONLINE_JUDGE -std=gnu++11 -Wall -Wextra -
lm -
O2 -o/, $basename, $name when 'CPP';
when ('MONO') {
system 'gmcs', '-d:ONLINE_JUDGE', $name and die "gmcs failed: errno=$! return=$?";
rename "$basename.exe", $basename;
when ('MONO') {
system 'gmcs', '-d:ONLINE_JUDGE', $name and die "gmcs failed: errno=$! return=$?";
rename "$basename.exe", $basename;
This page took
0.010296 seconds
and
4
git commands to generate.