Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
13e15827
Commit
13e15827
authored
24 years ago
by
Henrik (Grubba) Grubbström
Browse files
Options
Downloads
Patches
Plain Diff
Now converts command line remark "option not supported" into an error.
Rev: NT/tools/rntecl:1.8
parent
47c9b2a2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
NT/tools/rntecl
+15
-6
15 additions, 6 deletions
NT/tools/rntecl
with
15 additions
and
6 deletions
NT/tools/rntecl
+
15
−
6
View file @
13e15827
#!/usr/local/bin/pike
#!/usr/local/bin/pike
// -*- Pike -*-
// -*- Pike -*-
// $Id: rntecl,v 1.
7
2000/08/20 12:
37:5
6 grubba Exp $
// $Id: rntecl,v 1.
8
2000/08/20 12:
49:1
6 grubba Exp $
// RNTECL, a front-end to Intel ECL with options similar to GCC
// RNTECL, a front-end to Intel ECL with options similar to GCC
// Written by Fredrik Hubinette & Henrik Grubbstrm.
// Written by Fredrik Hubinette & Henrik Grubbstrm.
...
@@ -201,7 +201,7 @@ int main(int argc, string *argv)
...
@@ -201,7 +201,7 @@ int main(int argc, string *argv)
case "all": case "4":
case "all": case "4":
cflags+=({"-W4"}); break;
cflags+=({"-W4"}); break;
// Not supported, but in the manual...
// Not supported, but in the manual...
//
case "X": cflags+=({"-WX"}); break;
case "X": cflags+=({"-WX"}); break;
default: cflags+=({"-W3"}); break;
default: cflags+=({"-W3"}); break;
}
}
break;
break;
...
@@ -298,11 +298,12 @@ int main(int argc, string *argv)
...
@@ -298,11 +298,12 @@ int main(int argc, string *argv)
int ret;
int ret;
int first_line=1;
int first_line=1;
int
prototype
_error=0;
int
forced
_error=0;
string trailer = "";
string trailer = "";
// ecl.exe echoes the file name of the file we are compiling
// ecl.exe echoes the file name of the file we are compiling
// first, we need to get rid of that to make configure behave.
// first, we need to get rid of that to make configure behave.
// We also convert warning 147 into an error.
// We also convert warning 147 into an error, and command line
// remark "option not supported" into an error.
ret = silent_do_cmd(cmd,
ret = silent_do_cmd(cmd,
lambda(string output)
lambda(string output)
{
{
...
@@ -324,10 +325,18 @@ int main(int argc, string *argv)
...
@@ -324,10 +325,18 @@ int main(int argc, string *argv)
// for some reason this isn't an error.
// for some reason this isn't an error.
// We make it an error...
// We make it an error...
if (search(lines[i], "warning #147:") != -1) {
if (search(lines[i], "warning #147:") != -1) {
prototype
_error = 1;
forced
_error = 1;
lines[i] = replace(lines[i],
lines[i] = replace(lines[i],
"warning #147:",
"warning #147:",
"error #147:");
"error #147:");
} else {
// Make it possible to test if flags are supported.
if (search(lines[i],
"Command line remark: option '") != -1){
if (search(lines[i], "' not supported") != -1) {
forced_error = 1;
}
}
}
}
}
}
write(lines*"\n" + "\n");
write(lines*"\n" + "\n");
...
@@ -336,7 +345,7 @@ int main(int argc, string *argv)
...
@@ -336,7 +345,7 @@ int main(int argc, string *argv)
// Shouldn't happen, but...
// Shouldn't happen, but...
write(trailer);
write(trailer);
}
}
ret = ret ||
prototype
_error;
ret = ret ||
forced
_error;
if(ret)
if(ret)
{
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment