Bug 15282 – Import osmodel.mak from dmd to detect OS and MODEL

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
tools
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-11-04T04:02:59Z
Last change time
2017-12-24T22:07:01Z
Keywords
pull
Assigned to
No Owner
Creator
Sohgo Takeuchi

Comments

Comment #0 by sohgo — 2015-11-04T04:02:59Z
In order to compile the "tools" on a lot of operating systems, how about using osmodel.mak used in dmd, phobos and druntime to detect the OS and MODEL. I have noticed that the "tools" is not compilable on FreeBSD 10 (amd64) environment. The osmodel.mak is nice, so I'd like to suggest to use osmodel.mak. I will submit a pull request. The code will be available on https://github.com/sohgo/tools/tree/import-osmodel.mak. The branch name is import-osmodel.mak. Thanks.
Comment #1 by sohgo — 2015-11-04T04:27:47Z
Comment #2 by github-bugzilla — 2017-01-14T19:33:09Z
Commit pushed to master at https://github.com/dlang/tools https://github.com/dlang/tools/commit/6220f0a31d0934c0a8d87ff7650e209e29400e14 Merge pull request #179 from sohgo/import-osmodel.mak Issue 15282 - Import osmodel.mak from dmd to detect OS and MODEL
Comment #3 by github-bugzilla — 2017-01-16T23:24:36Z
Commit pushed to newCTFE at https://github.com/dlang/tools https://github.com/dlang/tools/commit/6220f0a31d0934c0a8d87ff7650e209e29400e14 Merge pull request #179 from sohgo/import-osmodel.mak
Comment #4 by github-bugzilla — 2017-03-22T12:21:49Z
Commit pushed to stable at https://github.com/dlang/tools https://github.com/dlang/tools/commit/6220f0a31d0934c0a8d87ff7650e209e29400e14 Merge pull request #179 from sohgo/import-osmodel.mak