From: johanknol Date: Tue, 27 Feb 2001 10:55:37 +0000 (+0000) Subject: fixed --nostdinc X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e2c3c8f3b90c272cce361f16629b111e93023063;p=fw%2Fsdcc fixed --nostdinc git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@658 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmain.c b/src/SDCCmain.c index c2aee606..a40d0033 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -135,7 +135,7 @@ char DefaultExePath[128]; static const char *_preCmd[] = { "sdcpp", "-Wall", "-lang-c++", "-DSDCC=1", - "$l", "-I" SDCC_INCLUDE_DIR, "$1", "$2", NULL + "$l", "$1", "$2", NULL }; PORT *port; @@ -1461,6 +1461,10 @@ preProcess (char **envp) break; } + /* standard include path */ + if (!options.nostdinc) { + _addToList (preArgv, "-I" SDCC_INCLUDE_DIR); + } /* add port (processor information to processor */ sprintf (procDef, "-DSDCC_%s", port->target);