Skip to content

By default, store ports inside the cache - #11270

Merged
sbc100 merged 1 commit into
masterfrom
embedded_ports
May 28, 2020
Merged

sbc100 merged 1 commit into
masterfrom
embedded_ports

Conversation

@sbc100

@sbc100 sbc100 commented May 28, 2020

Copy link
Copy Markdown
Collaborator

This means we no longer default to ~/.emscripten_ports and ports
now live in the cache by default.

This also means that --clear-ports is less meaningful since
--clear-cache normally handles that already.

Also enable PORTS to be set in the config file as well as the
existing EM_PORTS enviroment variable. This mirrors recent changes
to CACHE/EM_CACHE handling.

This is part of move away from using $HOME by default. In particular
I think this means the emsdk users who use --embedded will have nothing
added to their $HOME directory.

See #9543

@sbc100
sbc100 requested a review from kripken May 28, 2020 04:32

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please update docs about emcc --clear-cache now clearing ports too. Maybe in the changelog and in emcc --help.

This means we no longer default to `~/.emscripten_ports` and ports
now live in the cache by default.

This also means that `--clear-ports` is less meaningful since
`--clear-cache` normally handles that already.

Also enable `PORTS` to be set in the config file as well as the
existing `EM_PORTS` enviroment variable.  This mirrors recent changes
to `CACHE/EM_CACHE` handling.

This is part of move away from using $HOME by default.  In particular
I think this means the emsdk users who use --embedded will have nothing
added to their $HOME directory.

See #9543
@sbc100
sbc100 merged commit f550e2e into master May 28, 2020
@sbc100
sbc100 deleted the embedded_ports branch May 28, 2020 20:27
sbc100 added a commit that referenced this pull request May 30, 2020
Followup on #11270.

This means that users with a read-only emscripten root will continue
to default to having their cache live in $HOME.

In the long term such installations should configure the cache
specifically, but for now this restores the previous cache location.
sbc100 added a commit that referenced this pull request May 30, 2020
Followup on #11270.

This means that users with a read-only emscripten root will continue
to default to having their cache live in $HOME.

In the long term such installations should configure the cache
specifically, but for now this restores the previous cache location.
sbc100 added a commit that referenced this pull request Jun 1, 2020
Followup on #11270.

This means that users with a read-only emscripten root will continue
to default to having their cache live in $HOME.

In the long term such installations should configure the cache
specifically, but for now this restores the previous cache location.
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.

2 participants