Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pyodide
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
pyodide
Commits
409fe3b3
Commit
409fe3b3
authored
Jul 23, 2018
by
Michael Droettboom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ccache
parent
18da211e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
+13
-5
.circleci/config.yml
.circleci/config.yml
+3
-2
.gitignore
.gitignore
+1
-0
Makefile
Makefile
+7
-1
Makefile.envs
Makefile.envs
+1
-1
cpython/Setup.local
cpython/Setup.local
+1
-1
No files found.
.circleci/config.yml
View file @
409fe3b3
...
@@ -17,7 +17,7 @@ jobs:
...
@@ -17,7 +17,7 @@ jobs:
# Set up the Debian testing repo, and then install g++ from there...
# Set up the Debian testing repo, and then install g++ from there...
sudo bash -c "echo \"deb http://ftp.us.debian.org/debian testing main contrib non-free\" >> /etc/apt/sources.list"
sudo bash -c "echo \"deb http://ftp.us.debian.org/debian testing main contrib non-free\" >> /etc/apt/sources.list"
sudo apt-get update
sudo apt-get update
sudo apt-get install node-less cmake build-essential clang-format-6.0 flake8 uglifyjs python3-yaml chromium
sudo apt-get install node-less cmake build-essential clang-format-6.0 flake8 uglifyjs python3-yaml chromium
ccache
sudo apt-get install -t testing g++-8
sudo apt-get install -t testing g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 80 --slave /usr/bin/g++ g++ /usr/bin/g++-8
...
@@ -47,7 +47,7 @@ jobs:
...
@@ -47,7 +47,7 @@ jobs:
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v1-emsdk-{{ checksum "emsdk/Makefile" }}-v
4
-
v1-emsdk-{{ checksum "emsdk/Makefile" }}-v
5
-
run
:
-
run
:
name
:
build
name
:
build
...
@@ -58,6 +58,7 @@ jobs:
...
@@ -58,6 +58,7 @@ jobs:
-
save_cache
:
-
save_cache
:
paths
:
paths
:
-
./emsdk/emsdk
-
./emsdk/emsdk
-
$HOME/.ccache
key
:
v1-emsdk-{{ checksum "emsdk/Makefile" }}-v4
key
:
v1-emsdk-{{ checksum "emsdk/Makefile" }}-v4
-
run
:
-
run
:
...
...
.gitignore
View file @
409fe3b3
...
@@ -13,6 +13,7 @@ build
...
@@ -13,6 +13,7 @@ build
downloads
downloads
host
host
installs
installs
ccache
/root/
/root/
/build/
/build/
...
...
Makefile
View file @
409fe3b3
...
@@ -29,6 +29,7 @@ LDFLAGS=\
...
@@ -29,6 +29,7 @@ LDFLAGS=\
-s
WASM
=
1
\
-s
WASM
=
1
\
-s
SWAPPABLE_ASM_MODULE
=
1
\
-s
SWAPPABLE_ASM_MODULE
=
1
\
-s
USE_FREETYPE
=
1
\
-s
USE_FREETYPE
=
1
\
-s
USE_LIBPNG
=
1
\
-std
=
c++14
\
-std
=
c++14
\
-lstdc
++
\
-lstdc
++
\
--memory-init-file
0
--memory-init-file
0
...
@@ -48,6 +49,11 @@ all: build/pyodide.asm.js \
...
@@ -48,6 +49,11 @@ all: build/pyodide.asm.js \
build/renderedhtml.css
\
build/renderedhtml.css
\
build/test.data
\
build/test.data
\
build/packages.json
build/packages.json
if
hash
ccache &>/dev/null
;
then
\
mkdir
-p
$(PYODIDE_ROOT)
/ccache
;
\
ln
-s
`
which ccache
`
$(PYODIDE_ROOT)
/ccache/emcc
;
\
ln
-s
`
which ccache
`
$(PYODIDE_ROOT)
/ccache/em++
;
\
fi
build/pyodide.asm.js
:
src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.bc
\
build/pyodide.asm.js
:
src/main.bc src/jsimport.bc src/jsproxy.bc src/js2python.bc
\
...
@@ -126,7 +132,7 @@ clean:
...
@@ -126,7 +132,7 @@ clean:
%.bc
:
%.c $(CPYTHONLIB)
%.bc
:
%.c $(CPYTHONLIB)
$(CC)
-o
$@
$<
$(CFLAGS)
$(CC)
-o
$@
-c
$<
$(CFLAGS)
build/test.data
:
$(CPYTHONLIB)
build/test.data
:
$(CPYTHONLIB)
...
...
Makefile.envs
View file @
409fe3b3
export
PATH
:=
$(PYODIDE_ROOT)
/emsdk/emsdk:
$(PYODIDE_ROOT)
/emsdk/emsdk/clang/tag-e-1.38.4/build_tag-e1.38.4_64/bin:
$(PYODIDE_ROOT)
/emsdk/emsdk/node/8.9.1_64bit/bin:
$(PYODIDE_ROOT)
/emsdk/emsdk/emscripten/tag-1.38.4:
$(PYODIDE_ROOT)
/emsdk/emsdk/binaryen/tag-1.38.4_64bit_binaryen/bin:
$(PATH)
export
PATH
:=
$(PYODIDE_ROOT)
/
ccache:
$(PYODIDE_ROOT)
/
emsdk/emsdk:
$(PYODIDE_ROOT)
/emsdk/emsdk/clang/tag-e-1.38.4/build_tag-e1.38.4_64/bin:
$(PYODIDE_ROOT)
/emsdk/emsdk/node/8.9.1_64bit/bin:
$(PYODIDE_ROOT)
/emsdk/emsdk/emscripten/tag-1.38.4:
$(PYODIDE_ROOT)
/emsdk/emsdk/binaryen/tag-1.38.4_64bit_binaryen/bin:
$(PATH)
export
EMSDK
=
$(PYODIDE_ROOT)
/emsdk/emsdk
export
EMSDK
=
$(PYODIDE_ROOT)
/emsdk/emsdk
export
EM_CONFIG
=
$(PYODIDE_ROOT)
/emsdk/emsdk/.emscripten
export
EM_CONFIG
=
$(PYODIDE_ROOT)
/emsdk/emsdk/.emscripten
...
...
cpython/Setup.local
View file @
409fe3b3
...
@@ -24,7 +24,7 @@ _posixsubprocess _posixsubprocess.c
...
@@ -24,7 +24,7 @@ _posixsubprocess _posixsubprocess.c
binascii binascii.c
binascii binascii.c
zlib zlibmodule.c -IModules/zlib
zlib/adler32.c zlib/crc32.c zlib/deflate.c zlib/infback.c zlib/inffast.c zlib/inflate.c zlib/inftrees.c zlib/trees.c zlib/zutil.c zlib/compress.c zlib/uncompr.c zlib/gzclose.c zlib/gzlib.c zlib/gzread.c zlib/gzwrite.c
zlib zlibmodule.c -IModules/zlib
pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI -DXML_POOR_ENTROPY
pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI -DXML_POOR_ENTROPY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment