Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

generated .mo files checked in?

generated .mo files checked in?

I see that some files which are generated by the build process are also checked into the Subversion repository.  For instance, both Compiler/Template/CodegenXML.tpl and Compiler/Template/CodegenXML.mo are checked in.  I was always taught that only the source file should be checked in; adding generated files just tends to produce hard-to-identify error cases.  Is there a reason for this?

Re: generated .mo files checked in?

The reason is a quite good one that is possible to work around, but we don't want to (after bootstrapping it should be impossible to work around):
You need to have the compiled omc in order to generate the mo-file from a tpl-file. Which means you need to have omc installed before trying to compile it...

We could work around it by generating the C-code to compile a small susan compiler, and add this only once, but this works for now.

There are 0 guests and 0 other users also viewing this topic
You are here: