May be you could use generic preprocessor like gpp gpp --include a.swift b.swift -o c.swift
> Jens Alfke via swift-users <[email protected]> 於 2017年2月28日 下午3:19 寫道: > > >> On Feb 27, 2017, at 2:45 AM, Rupendra Limbore via swift-users >> <[email protected]> wrote: >> >> I am using swift as a CGI script with Apache server (just to explore). > > Are you treating Swift like a shell-script, by putting a “#!” at the top of > the file? That works, but it’s going to be terribly slow for a CGI script > because the source code has to be compiled for every... single… HTTP… request. > > It would be much more efficient to compile the Swift to an executable file, > and then use that file as the CGI. And that will solve your > multiple-source-files problem too. > > —Jens > _______________________________________________ > swift-users mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-users
_______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
