Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive

Comments

osmodel.mak: add comments#1843

Merged
dlang-bot merged 1 commit intodlang:masterfrom
WalterBright:comments-os.mak
Jun 19, 2017
Merged

osmodel.mak: add comments#1843
dlang-bot merged 1 commit intodlang:masterfrom
WalterBright:comments-os.mak

Conversation

@WalterBright
Copy link
Member

Makefiles need comments, too.

@WalterBright WalterBright added the Trivial typos, formatting, comments label Jun 18, 2017
#
# Note:
# Keep this file in sync between druntime, phobos, and dmd repositories!
# Source: https://github.com/dlang/druntime/blob/master/osmodel.mak
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand the purpose of this source link.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have them in all the dmd source code files - it's for the same reason - an easy way to find out things like the history of the file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git log osmodel.mak, no?

# MODEL_FLAG = one of { -m32, -m64 }
#
# Note:
# Keep this file in sync between druntime, phobos, and dmd repositories!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this needs accompanying PRs to dmd and phobos as per the comment.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but after this one.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this needs accompanying PRs to dmd and phobos as per the comment.

FWIW Phobos and Druntime already depend on DMD and I see no logical reason to have redundant copies of this files...
I actually tried to push for this once:

dlang/phobos#5228

But was stopped by people not wanting to have the DMD Makefile auto-checking out the tools repo.
However, we could go with the small scale solution and at least get rid of the osmodel files at Phobos, Druntime ...
Dlang.org was controversial as well due to automatic git clone

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there's a way to fix this from the github side - is it possible to link a file across projects?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if there's a way to fix this from the github side - is it possible to link a file across projects?

Yes, it's called submodules, and they come with their share of problems. (You need to remember to do git submodule update any time you move HEAD.)

Copy link
Member

@andralex andralex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool beans!

@andralex
Copy link
Member

codecov should not consider this for coverage. Why is jenkins failing? cc @MartinNowak

@PetarKirov
Copy link
Member

PetarKirov commented Jun 18, 2017

https://ci.dlang.io/blue/organizations/jenkins/dlang-org%2Fdruntime/detail/PR-1843/1/pipeline#step-480-log-330 - looks like configuration / environment issue. We can try restarting Jenkins by closing & reopening the PR.

@andralex andralex closed this Jun 18, 2017
@andralex andralex reopened this Jun 18, 2017
@andralex
Copy link
Member

let's see

@dlang-bot dlang-bot merged commit e731f72 into dlang:master Jun 19, 2017
@WalterBright WalterBright deleted the comments-os.mak branch July 1, 2017 21:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Trivial typos, formatting, comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants