Skip to content

Commit

Permalink
Explicitly specify the current directory to cover <> includes. (#8678)
Browse files Browse the repository at this point in the history
  - Libraries can include some of the header files we provide using `<>` instead of `""`.
    Make sure the current directory is specified explicitly in the preprocessor flags.

 - Fixes #8640
  • Loading branch information
mahge committed Mar 10, 2022
1 parent 17088e2 commit dd4e4ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OMCompiler/Compiler/Script/CevalScriptBackend.mo
Expand Up @@ -3574,7 +3574,7 @@ algorithm
LDFLAGS := ("-L"+dquote+Settings.getInstallationDirectoryPath()+"/lib/"+Autoconf.triple+"/omc"+dquote+" "+
"-Wl,-rpath,"+dquote+Settings.getInstallationDirectoryPath()+"/lib/"+Autoconf.triple+"/omc"+dquote+" "+
System.getLDFlags()+" ");
CPPFLAGS := "-I" + includeDefaultFmi + " -DOMC_FMI_RUNTIME=1";
CPPFLAGS := "-I. -I" + includeDefaultFmi + " -DOMC_FMI_RUNTIME=1";
if Flags.isSet(Flags.GEN_DEBUG_SYMBOLS) then
CPPFLAGS := CPPFLAGS + " -O0 -g ";
end if;
Expand Down

0 comments on commit dd4e4ae

Please sign in to comment.