October 20, 2013 [dmd-internals] [D-Programming-Language/dmd] 5a117c: fix Issue 11251 - Not able to link (Previous Defin... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/dmd Commit: 5a117c433d719a63e217e82232a3d0e7e83fd353 https://github.com/D-Programming-Language/dmd/commit/5a117c433d719a63e217e82232a3d0e7e83fd353 Author: k-hara <k.hara.pg@gmail.com> Date: 2013-10-19 (Sat, 19 Oct 2013) Changed paths: M src/glue.c M src/mars.c Log Message: ----------- fix Issue 11251 - Not able to link (Previous Definition Different) By #2540 , implicitly defined C main has been moved to __entrypoint module. But, the codegen generates ModuleInfo symbol for the module. And vibe.d has its own main function in library. Then, compiling uer progam with vibe.d library will cause the conflict of two ModuleInfo symbols of __entrypoint module. Due to avoid ModuleInfo symbol generation for __entrypoint, I added a special case in Module::genobjfile function. But, I'm not sure that the change won't cause any other problems... Commit: 01c985ae3e5eb5f66da8dbb46ed2c1a621fbfcac https://github.com/D-Programming-Language/dmd/commit/01c985ae3e5eb5f66da8dbb46ed2c1a621fbfcac Author: Walter Bright <walter@walterbright.com> Date: 2013-10-20 (Sun, 20 Oct 2013) Changed paths: M src/glue.c M src/mars.c Log Message: ----------- Merge pull request #2685 from 9rnsr/fix11251 [REG2.064a] Issue 11251 - Not able to link (Previous Definition Different) Compare: https://github.com/D-Programming-Language/dmd/compare/7d3b38e87c37...01c985ae3e5e |
Copyright © 1999-2021 by the D Language Foundation