www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15282] New: Import osmodel.mak from dmd to detect OS and MODEL

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

          Issue ID: 15282
           Summary: Import osmodel.mak from dmd to detect OS and MODEL
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: tools
          Assignee: nobody puremagic.com
          Reporter: sohgo sohgo.more.jp

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.

--
Nov 03 2015