Skip to content

Move loadModule and paintAsType from Target to Compiler#7559

Merged
dlang-bot merged 1 commit intodlang:masterfrom
ibuclaw:mvtargetcompiler
Oct 5, 2018
Merged

Move loadModule and paintAsType from Target to Compiler#7559
dlang-bot merged 1 commit intodlang:masterfrom
ibuclaw:mvtargetcompiler

Conversation

@ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Dec 31, 2017

These are a couple of funny little functions that are compiler-specific, but are not directly related to the target platform.

@dlang-bot
Copy link
Contributor

dlang-bot commented Dec 31, 2017

Thanks for your pull request, @ibuclaw!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + dmd#7559"

@wilzbach
Copy link
Contributor

wilzbach commented Jan 8, 2018

(rebased)

src/posix.mak Outdated

$G/lexer.a: $(LEXER_SRCS) $(LEXER_ROOT) $(HOST_DMD_PATH) $(SRC_MAKE)
CC="$(HOST_CXX)" $(HOST_DMD_RUN) -lib -of$@ $(MODEL_FLAG) -J$G -L-lstdc++ $(DFLAGS) $(LEXER_SRCS) $(LEXER_ROOT)
CC="$(HOST_CXX)" $(HOST_DMD_RUN) -lib -of$@ $(MODEL_FLAG) -J$G -J../res -L-lstdc++ $(DFLAGS) $(LEXER_SRCS) $(LEXER_ROOT)
Copy link
Member

Choose a reason for hiding this comment

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

The additional -J switch appears to have nothing to do with this PR.

Copy link
Member Author

Choose a reason for hiding this comment

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

The circular import adds extra module dependencies on the bare bones "lexer" library. I have been making other PRs to reduce the effect of this, but ultimately will probably move the vendor field back to globals for now.

Copy link
Member

Choose a reason for hiding this comment

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

Ok. The rest of the PR looks good to me.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove the lexer library from the makefiles? We already have the Dub package.

@ibuclaw
Copy link
Member Author

ibuclaw commented Oct 1, 2018

Rebased.

@ibuclaw
Copy link
Member Author

ibuclaw commented Oct 4, 2018

Rebased again.

@dlang-bot dlang-bot merged commit 4aef2b1 into dlang:master Oct 5, 2018
@ibuclaw ibuclaw deleted the mvtargetcompiler branch October 5, 2018 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants