[Issue 2968] Add a pragma(framework) on osx

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 26 14:45:37 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=2968

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #7 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Adam D. Ruppe from comment #5)
> I'm gonna go ahead and disagree that this is useless; I still wish we had
> it, and it would be a trivial little addition. If it doesn't work in gdc, no
> big deal, they can still use their command line. But it is nice for things
> to just work and specify their own dependencies.

Well, pragma(lib) only works if you are compiling the project, not importing it
(i.e: Every pragma(lib) in core.sys.windows doesn't work with certain build
configurations).  pragma(framework) will suffer from the same limitation.

The build tools are better placed to manage this, assumedly because you already
explicitly say what your dependencies are, and it can merge all library
dependencies together in the final link command.

--


More information about the Digitalmars-d-bugs mailing list