@@ -2,7 +2,7 @@ import Foundation
22
33@main
44struct CodeGenerator {
5- static func main( ) async throws {
5+ static func main( ) throws {
66 // Use swift-argument-parser or just CommandLine, here we just imply that 2 paths are passed in: input and output
77 guard CommandLine . arguments. count == 2 else {
88 throw CodeGeneratorError . invalidArguments
@@ -20,13 +20,19 @@ struct CodeGenerator {
2020
2121 for floatingPointType in floatingPointTypes {
2222 // Generator Derivatives for RealFunctions for floating point types
23- let realFunctionDerivativesFileURL = output. appending ( component: " \( floatingPointType) +RealFunctions+Derivatives.swift " )
23+ let realFunctionDerivativesFileURL = output. appending (
24+ component: " \( floatingPointType) +RealFunctions+Derivatives.swift " ,
25+ directoryHint: . notDirectory
26+ )
2427 let type = floatingPointType
2528 let realFunctionsDerivativesExtensionCode = RealFunctionsDerivativesGenerator . realFunctionsDerivativesExtension ( type: type, floatingPointType: floatingPointType)
2629 try realFunctionsDerivativesExtensionCode. write ( to: realFunctionDerivativesFileURL, atomically: true , encoding: . utf8)
2730
2831 for simdSize in simdSizes {
29- let realFunctionFileURL = output. appending ( component: " SIMD \( simdSize) + \( floatingPointType) +RealFunctions.swift " )
32+ let realFunctionFileURL = output. appending (
33+ component: " SIMD \( simdSize) + \( floatingPointType) +RealFunctions.swift " ,
34+ directoryHint: . notDirectory
35+ )
3036 let simdType = " SIMD \( simdSize) < \( floatingPointType) > "
3137
3238 // no simd methods exist for simd size >= 16 and scalar > Float so we don't add acceleration to those.
0 commit comments