Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9051e0e

Browse files
committed
- Weaklink InterfaceLib in _Res module
- forgot to pass libraryflags and stdlibraryflags on to ppc/carbon project generation. First half of fix to 531398.
1 parent b26f363 commit 9051e0e

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Mac/scripts/genpluginprojects.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ def genpluginproject(architecture, module,
4141
# For the time being we generate two project files. Not as nice as
4242
# a single multitarget project, but easier to implement for now.
4343
genpluginproject("ppc", module, project, projectdir, sources, sourcedirs,
44-
libraries, extradirs, extraexportsymbols, outputdir)
44+
libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
45+
stdlibraryflags, prefixname)
4546
genpluginproject("carbon", module, project, projectdir, sources, sourcedirs,
46-
libraries, extradirs, extraexportsymbols, outputdir)
47+
libraries, extradirs, extraexportsymbols, outputdir, libraryflags,
48+
stdlibraryflags, prefixname)
4749
return
4850
templatename = "template-%s" % architecture
4951
targetname = "%s.%s" % (module, architecture)
@@ -162,7 +164,8 @@ def genallprojects(force=0):
162164
genpluginproject("ppc", "_Qt", libraries=["QuickTimeLib"], outputdir="::Lib:Carbon")
163165
genpluginproject("carbon", "_Qt", outputdir="::Lib:Carbon")
164166
genpluginproject("all", "_Qdoffs", outputdir="::Lib:Carbon")
165-
genpluginproject("all", "_Res", outputdir="::Lib:Carbon")
167+
genpluginproject("all", "_Res",
168+
stdlibraryflags="Debug, WeakImport", outputdir="::Lib:Carbon")
166169
genpluginproject("all", "_Scrap", outputdir="::Lib:Carbon")
167170
genpluginproject("ppc", "_Snd", libraries=["CarbonAccessors.o", "SoundLib"], outputdir="::Lib:Carbon")
168171
genpluginproject("carbon", "_Snd", outputdir="::Lib:Carbon")

0 commit comments

Comments
 (0)