summaryrefslogtreecommitdiff
path: root/util/romcc
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-04-21 12:41:55 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-04-21 12:41:55 +0000
commit5cda45d5ec2dc2b112cb7ec1a95b861f1fa9fd2b (patch)
tree59210b61518a9c8e71e65e2bddbce1d99ad8d026 /util/romcc
parent7bd658873c5b4066b4f247255cb7a98ba1750cd1 (diff)
downloadcoreboot-5cda45d5ec2dc2b112cb7ec1a95b861f1fa9fd2b.tar.xz
scan-build prefers -include over --includes=, gcc knows both.
With this change, romcc knows -include and the build system uses it. Also use a full path to settings.h because scan-build has trouble finding it otherwise. Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Joseph Smith <joe@settoplinux.org> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4151 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/romcc')
-rw-r--r--util/romcc/romcc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index 0fc83a168b..bc647fd75b 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -25118,11 +25118,13 @@ int main(int argc, char **argv)
else if (strncmp(argv[1], "-m", 2) == 0) {
result = arch_encode_flag(&arch, argv[1]+2);
}
- else if (strncmp(argv[1], "--include=", 10) == 0) {
+ else if (strncmp(argv[1], "-include", 10) == 0) {
if (includefile) {
- arg_error("Only one --include option may be specified.\n");
+ arg_error("Only one -include option may be specified.\n");
} else {
- includefile = argv[1] + 10;
+ argv++;
+ argc--;
+ includefile = argv[1];
result = 0;
}
}