Skip to content

v1.0.1

Choose a tag to compare

@yhames yhames released this 22 Jul 17:56
· 2 commits to main since this release

Troubleshooting

SwiftDriverExecution/MultiJobExecutor.swift:207: Fatal error: multiple producers for output mlx_image.swiftmodule: Compiling mlx_image mlx_image.swift & Emitting module for mlx_image

This error occurs because the name of the swiftmodule file created with -o and the swiftmodule file created with -emit-module are the same In swiftmodule compilation rules.

Fix

We removed -o $@ options in swiftmodule compilation rules.

  • Before
%.swiftmodule: %.swift
	swiftc $(OPTI) $(INC) -parse-as-library -c $< -o $@ -emit-module -module-name $(patsubst %.swift,%,$<) -module-link-name $(patsubst %.swift,%,$<)
  • After
%.swiftmodule: %.swift
	swiftc $(OPTI) $(INC) -parse-as-library -c $< -emit-module -module-name $(patsubst %.swift,%,$<) -module-link-name $(patsubst %.swift,%,$<)