Repository navigation
v1.0.1
Troubleshooting
SwiftDriverExecution/MultiJobExecutor.swift:207: Fatal error: multiple producers for output mlx_image.swiftmodule: Compiling mlx_image mlx_image.swift & Emitting module for mlx_imageThis 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,%,$<)