/* standard library path */
if (!options.nostdlib)
{
+/****
if (TARGET_IS_DS390)
{
c = "ds390";
}
else
+*****/
{
switch (options.model)
{
c = "large";
break;
case MODEL_FLAT24:
- c = "flat24";
+ /* c = "flat24"; */
+ c = "ds390";
break;
default:
werror (W_UNKNOWN_MODEL, __FILE__, __LINE__);
fprintf (lnkfile, "-k %s/%s\n", SDCC_LIB_DIR /*STD_LIB_PATH */ , c);
/* standard library files */
- if (strcmp (port->target, "ds390") == 0)
+ /* if (strcmp (port->target, "ds390") == 0) */
+ if (options.model == MODEL_FLAT24)
{
fprintf (lnkfile, "-l %s\n", STD_DS390_LIB);
}
setDefaultOptions ();
parseCmdLine (argc, argv);
+ if (getenv("SDCPP"))
+ {
+ _preCmd[0] = getenv("SDCPP");
+ }
+
/* if no input then printUsage & exit */
if ((!options.c1mode && !srcFileName && !nrelFiles) ||
(options.c1mode && !srcFileName && !options.out_name))