Opened 5 years ago

Last modified 3 years ago

#5827 new defect

Have a setting for dynamic/static link of the generated executable

Reported by: Adrian Pop Owned by: Martin Sjölund
Priority: high Milestone:
Component: Build Environment Version:
Keywords: Cc:

Description

Currently it takes a lot of time to compile an executable (at least on Windows) because is statically link.

Static link is nice because you can give the executable to somebody and it will still work.

We should have a setting to have dynamic link by default and static link if the user wants it. Same as we already have now for FMI compilation.

Change History (5)

comment:1 by Martin Sjölund, 5 years ago

Then you need to deal with paths to dlls on Windows though. OMPython scripts would no longer be able to just call the executable since it doesn't have this path, no?

comment:2 by Francesco Casella, 5 years ago

I'd say that as far as OMEdit is concerned, faster dynamic linking should be the default. In most cases you just want to compile and run your simulation

comment:3 by Francesco Casella, 4 years ago

PR 7183 partially addresses this issue.

comment:4 by Francesco Casella, 4 years ago

Milestone: Future1.18.0

comment:5 by Francesco Casella, 3 years ago

Milestone: 1.18.0

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.