You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Actually eta does not regenerate the main jar if the jars included as input files to be linked change.
If you do a etlas --make Module.hs module-dep.jar and later module-dep.jar changes, a second call doesn't generate a new run-module.jar with those changes. This is so even if you add or remove jars from the call.
A full build including compile would not be neccesary, only a new linking.
The text was updated successfully, but these errors were encountered:
The change could be modify the ETA.Main.DriverPipeline.linkingNeeded to take in account all the files involved in the link phase.
Actually ghc check if linking is needed:
checking if any of object files or extra_ld_inputs are newer than the last executable
doing a similar check for the included haskell libraries
A posiible solution for eta could be save the linked info with all files involved in the final jar (f.e. in a file called .link-info in the root).
This info could be a line for each file linked with the name and a hash. In each call to eta, it would build that info and compare it with the last one, triggering the link if they don't match.
The hash of each file could be a checksum of the file content or a hashed string with the full path, modification time and size.
As __extras.jar with the java sources is one of those files we could use its hash to trigger the compile and link of java sources when they change, as required in the issue #594.
Actually eta does not regenerate the main jar if the jars included as input files to be linked change.
If you do a
etlas --make Module.hs module-dep.jar
and latermodule-dep.jar
changes, a second call doesn't generate a new run-module.jar with those changes. This is so even if you add or remove jars from the call.A full build including compile would not be neccesary, only a new linking.
The text was updated successfully, but these errors were encountered: