Need to provide compiler switch

Hi,

I try to get some Swift code running, which uses a C-Library, but need therefore an option send to the compiler. Where do I put this instruction? I searched in the Package Manager and also in the module map documentation, but could not find anything.

Could someone here knows a solution ?

Kind regards
Ralph

This isn't something we support yet.

Can you elaborate on the exact situation? Are you trying to use a system module and need to set some compiler define?

- Daniel

···

On Dec 30, 2015, at 4:13 AM, Ralph Ganszky via swift-users <swift-users@swift.org> wrote:

Hi,

I try to get some Swift code running, which uses a C-Library, but need therefore an option send to the compiler. Where do I put this instruction? I searched in the Package Manager and also in the module map documentation, but could not find anything.

Could someone here knows a solution ?

Kind regards
Ralph
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

I got work around with including some header to module map.
example here
COpenGL.swift <https://github.com/sakrist/COpenGL.swift&gt;
and here
CX11.swift <https://github.com/sakrist/CX11.swift&gt;

in documentation found config_macros
on clang/llvm <Modules — Clang 18.0.0git documentation; website, but did not get it work

Best Regards,
Volodymyr Boichentsov

···

On 4 Jan 2016, at 17:21, Daniel Dunbar via swift-users <swift-users@swift.org> wrote:

This isn't something we support yet.

Can you elaborate on the exact situation? Are you trying to use a system module and need to set some compiler define?

- Daniel

On Dec 30, 2015, at 4:13 AM, Ralph Ganszky via swift-users <swift-users@swift.org> wrote:

Hi,

I try to get some Swift code running, which uses a C-Library, but need therefore an option send to the compiler. Where do I put this instruction? I searched in the Package Manager and also in the module map documentation, but could not find anything.

Could someone here knows a solution ?

Kind regards
Ralph
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users