Skip to content
Success

Changes

Summary

  1. Allow linking empty .cmxa files on MSVC (commit: 793cd86) (details)
  2. Test for linking archives with no modules (commit: d732593) (details)
  3. Don't call the archiver/librarian for empty .cmxa (commit: e6ab329) (details)
Commit 793cd86785b8c028bc7fd824a82582d88510e71c by david.allsopp
Allow linking empty .cmxa files on MSVC

MSVC .lib format doesn't support having no .obj files in the library, so
ocamlopt -o foo.cmxa -a generates foo.cmxa but not foo.lib (there's no
error from the Microsoft Linker). The resulting foo.cmxa is unlinkable,
since OCaml passes foo.lib on to the linker.

This patch relaxes the requirement for foo.lib if the .cmxa contains no
units.
(commit: 793cd86)
The file was modifiedChanges (diff)
The file was modifiedasmcomp/asmlink.ml (diff)
Commit d732593c858c138f59296a2ad211520ac0abc2ec by david.allsopp
Test for linking archives with no modules
(commit: d732593)
The file was addedtestsuite/tests/link-test/empty.ml
Commit e6ab3295410190f81de315fc82e44891a12075f4 by david.allsopp
Don't call the archiver/librarian for empty .cmxa
(commit: e6ab329)
The file was modifiedutils/ccomp.ml (diff)
The file was modifiedChanges (diff)
The file was modifiedasmcomp/asmlink.ml (diff)