Thread overview
[Issue 2968] Add a pragma(framework) on osx
May 16, 2018
Dmitry Olshansky
May 16, 2018
Jacob Carlborg
Feb 26, 2019
Adam D. Ruppe
Nov 26, 2019
Dlang Bot
Nov 26, 2019
Iain Buclaw
Nov 26, 2019
Adam D. Ruppe
Nov 26, 2019
Dlang Bot
Dec 17, 2022
Iain Buclaw
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=2968

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unspecified                 |D2

--
May 16, 2018
https://issues.dlang.org/show_bug.cgi?id=2968

Dmitry Olshansky <dmitry.olsh@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh@gmail.com

--- Comment #3 from Dmitry Olshansky <dmitry.olsh@gmail.com> ---
Is that still a problem with your latest Objective-C support patches?

--
May 16, 2018
https://issues.dlang.org/show_bug.cgi?id=2968

--- Comment #4 from Jacob Carlborg <doob@me.com> ---
(In reply to Dmitry Olshansky from comment #3)
> Is that still a problem with your latest Objective-C support patches?

Nothing has changed. But I'm not sure if I think it's a problem anymore. I think this is better left for the build tool, same thing with "pragma(lib)". GDC doesn't implement "pragma(lib)" and would most likely not implement this either.

--
February 26, 2019
https://issues.dlang.org/show_bug.cgi?id=2968

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #5 from Adam D. Ruppe <destructionator@gmail.com> ---
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.

--
November 26, 2019
https://issues.dlang.org/show_bug.cgi?id=2968

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@benjones created dlang/dmd pull request #10615 "fix issue 2968 by adding a new pragma(framework) " fixing this issue:

- fix issue 2968 by adding a new pragma(framework) to add appropraite flags to the link command on macos

https://github.com/dlang/dmd/pull/10615

--
November 26, 2019
https://issues.dlang.org/show_bug.cgi?id=2968

Iain Buclaw <ibuclaw@gdcproject.org> changed:

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

--- Comment #7 from Iain Buclaw <ibuclaw@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.

--
November 26, 2019
https://issues.dlang.org/show_bug.cgi?id=2968

--- Comment #8 from Adam D. Ruppe <destructionator@gmail.com> ---
Indeed, and I can live with that. It is still nice to have it there.

--
November 26, 2019
https://issues.dlang.org/show_bug.cgi?id=2968

--- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> ---
@benjones created dlang/dlang.org pull request #2719 "fix issue 2968 by adding pragma(framework)" fixing this issue:

- fix issue 2968 by adding pragma(framework)

https://github.com/dlang/dlang.org/pull/2719

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=2968

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P2                          |P4

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

--- Comment #10 from Adam D. Ruppe <destructionator@gmail.com> ---
Still wishing this worked.

--