-
-
Notifications
You must be signed in to change notification settings - Fork 382
Use Makefile's pattern rules for the intermediate assert/writeln translation #1590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
00aa0bb
Use pattern rules for the intermediate assert/writeln translation
wilzbach e20cfee
Add more comments to posix.mak
wilzbach 83b47d6
Use osmodel.mak for dlang.org
wilzbach ca6ba64
Add tools and installer dir to the auto git cloned repos
wilzbach c9cf21e
write the assert_writeln_magic binary to the .generated folder
wilzbach File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # This Makefile snippet detects the OS and the architecture MODEL | ||
| # Keep this file in sync between druntime, phobos, and dmd repositories! | ||
|
|
||
| ifeq (,$(OS)) | ||
| uname_S:=$(shell uname -s) | ||
| ifeq (Darwin,$(uname_S)) | ||
| OS:=osx | ||
| endif | ||
| ifeq (Linux,$(uname_S)) | ||
| OS:=linux | ||
| endif | ||
| ifeq (FreeBSD,$(uname_S)) | ||
| OS:=freebsd | ||
| endif | ||
| ifeq (NetBSD,$(uname_S)) | ||
| OS:=netbsd | ||
| endif | ||
| ifeq (OpenBSD,$(uname_S)) | ||
| OS:=openbsd | ||
| endif | ||
| ifeq (Solaris,$(uname_S)) | ||
| OS:=solaris | ||
| endif | ||
| ifeq (SunOS,$(uname_S)) | ||
| OS:=solaris | ||
| endif | ||
| ifeq (,$(OS)) | ||
| $(error Unrecognized or unsupported OS for uname: $(uname_S)) | ||
| endif | ||
| endif | ||
|
|
||
| # When running make from XCode it may set environment var OS=MACOS. | ||
| # Adjust it here: | ||
| ifeq (MACOS,$(OS)) | ||
| OS:=osx | ||
| endif | ||
|
|
||
| ifeq (,$(MODEL)) | ||
| ifeq ($(OS), solaris) | ||
| uname_M:=$(shell isainfo -n) | ||
| else | ||
| uname_M:=$(shell uname -m) | ||
| endif | ||
| ifneq (,$(findstring $(uname_M),x86_64 amd64)) | ||
| MODEL:=64 | ||
| endif | ||
| ifneq (,$(findstring $(uname_M),i386 i586 i686)) | ||
| MODEL:=32 | ||
| endif | ||
| ifeq (,$(MODEL)) | ||
| $(error Cannot figure 32/64 model from uname -m: $(uname_M)) | ||
| endif | ||
| endif | ||
|
|
||
| MODEL_FLAG:=-m$(MODEL) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw I just kept this support because it might be nice "in a possible future". It's not needed anymore as the Makefile does the invocations with a single file.