D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 12962 - osver.mak should use isainfo on Solaris to determine model
Summary: osver.mak should use isainfo on Solaris to determine model
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86 Solaris
: P1 minor
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks: 8859
  Show dependency treegraph
 
Reported: 2014-06-23 01:00 UTC by Jason King
Modified: 2015-06-09 05:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jason King 2014-06-23 01:00:45 UTC
Currently, dmd/src/osmodel.mak uses the output of uname -m (if not already set) to determine the value of $(MODEL) which is used to determine if a 32 or 64 bit binary should be built.

On Solarish systems (this includes Illumos based distos), this value isn't very useful.  isainfo -n will output a value (amd64/i386) that is more suitable.
Comment 1 github-bugzilla 2014-06-23 08:57:43 UTC
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/6c5c5a9b0ee8bcec314867ad0d7121ff61b9b97c
Fix issue 12962 - use isainfo on Solaris to determine model

https://github.com/D-Programming-Language/dmd/commit/dd45b507315999e84eab46a4af251aace2bd420e
Merge pull request #3686 from jasonbking/issue_12962

Fix issue 12962 - use isainfo on Solaris to determine model
Comment 2 github-bugzilla 2014-06-28 00:05:03 UTC
Commit pushed to master at https://github.com/D-Programming-Language/druntime

https://github.com/D-Programming-Language/druntime/commit/1b00a711ad2b810caf2da4c770b899df69890304
Fix issue 12962 - Should use isainfo on Solaris systems to determine
model