Skip to content

Commit

Permalink
add support for 32-bit linux (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanw committed Jul 25, 2020
1 parent a45431e commit 9415613
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

The original paths in nested source maps are now modified to be relative to the directory containing the source map. This means source maps from packages inside `node_modules` will stay inside `node_modules` in browser developer tools instead of appearing at the root of the virtual file system where they might collide with the original paths of files in other packages.

* Support for 32-bit Linux systems ([#285](https://github.com/evanw/esbuild/issues/285))

You can now install the esbuild npm package on 32-bit Linux systems.

## 0.6.6

* Fix minification bug with `this` values for function calls ([#282](https://github.com/evanw/esbuild/issues/282))
Expand Down
13 changes: 11 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ update-version-go:
echo "package main\n\nconst esbuildVersion = \"$(ESBUILD_VERSION)\"" > cmd/esbuild/version.go

platform-all: update-version-go test-all
make -j9 \
make -j10 \
platform-windows \
platform-darwin \
platform-freebsd \
platform-freebsd-arm64 \
platform-linux \
platform-linux-32 \
platform-linux-arm64 \
platform-linux-ppc64le \
platform-wasm \
Expand Down Expand Up @@ -69,6 +70,9 @@ platform-freebsd-arm64:
platform-linux:
make GOOS=linux GOARCH=amd64 NPMDIR=npm/esbuild-linux-64 platform-unixlike

platform-linux-32:
make GOOS=linux GOARCH=386 NPMDIR=npm/esbuild-linux-32 platform-unixlike

platform-linux-arm64:
make GOOS=linux GOARCH=arm64 NPMDIR=npm/esbuild-linux-arm64 platform-unixlike

Expand All @@ -87,12 +91,13 @@ platform-neutral: | esbuild
node scripts/esbuild.js ./esbuild

publish-all: update-version-go test-all
make -j8 \
make -j9 \
publish-windows \
publish-darwin \
publish-freebsd \
publish-freebsd-arm64 \
publish-linux \
publish-linux-32 \
publish-linux-arm64 \
publish-linux-ppc64le \
publish-wasm
Expand All @@ -116,6 +121,9 @@ publish-freebsd-arm64: platform-freebsd-arm64
publish-linux: platform-linux
test -n "$(OTP)" && cd npm/esbuild-linux-64 && npm publish --otp="$(OTP)"

publish-linux-32: platform-linux-32
test -n "$(OTP)" && cd npm/esbuild-linux-32 && npm publish --otp="$(OTP)"

publish-linux-arm64: platform-linux-arm64
test -n "$(OTP)" && cd npm/esbuild-linux-arm64 && npm publish --otp="$(OTP)"

Expand All @@ -134,6 +142,7 @@ clean:
rm -rf npm/esbuild-darwin-64/bin
rm -rf npm/esbuild-freebsd-64/bin
rm -rf npm/esbuild-freebsd-amd64/bin
rm -rf npm/esbuild-linux-32/bin
rm -rf npm/esbuild-linux-64/bin
rm -rf npm/esbuild-linux-arm64/bin
rm -rf npm/esbuild-linux-ppc64le/bin
Expand Down
3 changes: 3 additions & 0 deletions npm/esbuild-linux-32/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# esbuild

This is the Linux 32-bit binary for esbuild, a JavaScript bundler and minifier. See https://github.com/evanw/esbuild for details.
16 changes: 16 additions & 0 deletions npm/esbuild-linux-32/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "esbuild-linux-32",
"version": "0.6.6",
"description": "The Linux 32-bit binary for esbuild, a JavaScript bundler.",
"repository": "https://github.com/evanw/esbuild",
"license": "MIT",
"os": [
"linux"
],
"cpu": [
"ia32"
],
"directories": {
"bin": "bin"
}
}
1 change: 1 addition & 0 deletions npm/esbuild/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const knownUnixlikePackages = {
'darwin x64 LE': 'esbuild-darwin-64',
'freebsd x64 LE': 'esbuild-freebsd-64',
'freebsd arm64 LE': 'esbuild-freebsd-arm64',
'linux ia32 LE': 'esbuild-linux-32',
'linux x64 LE': 'esbuild-linux-64',
'linux arm64 LE': 'esbuild-linux-arm64',
'linux ppc64 LE': 'esbuild-linux-ppc64le',
Expand Down

0 comments on commit 9415613

Please sign in to comment.