Skip to content

Fix windows cross builds.#40439

Merged
thaJeztah merged 1 commit intomoby:masterfrom
cpuguy83:fix_windows_cross
Feb 1, 2020
Merged

Fix windows cross builds.#40439
thaJeztah merged 1 commit intomoby:masterfrom
cpuguy83:fix_windows_cross

Conversation

@cpuguy83
Copy link
Copy Markdown
Member

Windows still writes to the autogen directory, but the source code is
mounted in as read-only.
In order to do enable this without taking a massive hit in doing an rw
mount (for the source code) we mount a tmpfs into the build at the
autogen dir.
In order for this to work the directory must alreay exist, so we create
it before entering the build.

Fixes #40438

Comment thread Makefile Outdated
Comment thread Dockerfile Outdated
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

Windows still writes to the autogen directory, but the source code is
mounted in as read-only.
In order to do enable this without taking a massive hit in doing an rw
mount (for the source code) we mount a tmpfs into the build at the
autogen dir.
In order for this to work the directory must alreay exist, so we create
it before entering the build.

Signed-off-by: Brian Goff <[email protected]>
@cpuguy83
Copy link
Copy Markdown
Member Author

And fixed typo that you will now never see 🎉

Copy link
Copy Markdown
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

that was quick, thanks !

@thaJeztah
Copy link
Copy Markdown
Member

I'll bring this one in

@thaJeztah thaJeztah merged commit 513b207 into moby:master Feb 1, 2020
@thaJeztah thaJeztah added this to the 20.03.0 milestone Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make cross broken for Windows on master

3 participants