Changeset 6c0faf90 in OpenModelica


Ignore:
Timestamp:
2020-10-20T17:21:43+02:00 (3 years ago)
Author:
Martin Sjölund <martin.sjolund@…>
Children:
700669a3
Parents:
a9da941c
Message:

Stage 2 also needs OMHOME

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/runtime/settingsimpl.c

    re7f512c r6c0faf90  
    7979}
    8080
    81 #if defined(OPENMODELICA_BOOTSTRAPPING_STAGE_1)
     81#if defined(OPENMODELICA_BOOTSTRAPPING_STAGE_1) || defined(OPENMODELICA_BOOTSTRAPPING_STAGE_2)
    8282const char* SettingsImpl__getInstallationDirectoryPath(void) {
    8383  const char *path = getenv("OPENMODELICAHOME");
    84   return path ? path : "OPENMODELICA_BOOTSTRAPPING_STAGE_1_NO_OPENMODELICAHOME";
     84  return path &&*path ? path : "OPENMODELICA_BOOTSTRAPPING_STAGE_1_NO_OPENMODELICAHOME";
    8585}
    8686#else
Note: See TracChangeset for help on using the changeset viewer.