Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
104395b7
Commit
104395b7
authored
Dec 02, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add makefile option to defer to cmake
parent
d7543b90
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
13 deletions
+20
-13
Makefile
Makefile
+14
-10
docs/INSTALLING.md
docs/INSTALLING.md
+6
-3
No files found.
Makefile
View file @
104395b7
...
...
@@ -713,9 +713,6 @@ endef
# Finally, link it all together:
$(call
link,_dbg,$(OBJS),$(LDFLAGS),$(LLVM_DEPS))
$(call
link,_debug,$(OBJS),$(LDFLAGS_DEBUG),$(LLVM_DEBUG_DEPS))
$(call
link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
$(call link,_grwl,stdlib.grwl.bc.o $(SRCS
:
.cpp=.grwl.o)
,
$(LDFLAGS_RELEASE)
,
$(LLVM_RELEASE_DEPS))
$(call link,_grwl_dbg,stdlib.grwl_dbg.bc.o $(SRCS
:
.cpp=.grwl_dbg.o)
,
$(LDFLAGS)
,
$(LLVM_DEPS))
$(call link,_nosync,stdlib.nosync.bc.o $(SRCS
:
.cpp=.nosync.o)
,
$(LDFLAGS_RELEASE)
,
$(LLVM_RELEASE_DEPS))
...
...
@@ -732,13 +729,20 @@ pyston_profile: $(PROFILE_OBJS) $(LLVM_PROFILE_DEPS)
$(ECHO)
Linking
$@
$(VERB)
$(CXX)
$(PROFILE_OBJS)
$(LDFLAGS_PROFILE)
-o
$@
.PHONY
:
pyston_dbg_cmake pyston_release_cmake
pyston_dbg_cmake
:
ninja
-C
$(HOME)
/pyston-build-dbg pyston
ln
-Sf
$(HOME)
/pyston-build-dbg/pyston pyston_dbg
pyston_release_cmake
:
ninja
-C
$(HOME)
/pyston-build-release pyston
ln
-Sf
$(HOME)
/pyston-build-release/pyston pyston_release
ifneq
($(USE_CMAKE),1)
$(call
link,_dbg,$(OBJS),$(LDFLAGS),$(LLVM_DEPS))
$(call
link,_debug,$(OBJS),$(LDFLAGS_DEBUG),$(LLVM_DEBUG_DEPS))
$(call
link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
else
.PHONY
:
pyston_dbg pyston_release
pyston_dbg
:
ninja
-C
$(HOME)
/pyston-build-dbg pyston
$(NINJAFLAGS)
ln
-sf
$(HOME)
/pyston-build-dbg/pyston pyston_dbg
pyston_release
:
ninja
-C
$(HOME)
/pyston-build-release pyston
$(NINJAFLAGS)
ln
-sf
$(HOME)
/pyston-build-release/pyston pyston_release
endif
-include
$(wildcard *.d) $(wildcard */*.d) $(wildcard */*/*.d) $(wildcard $(UNITTEST_DIR)/*.d) $(wildcard ./lib_python/2.7_Modules/*.d)
...
...
docs/INSTALLING.md
View file @
104395b7
...
...
@@ -285,7 +285,7 @@ To use the toolchain from this document, do:
```
mkdir ~/pyston-build
cd ~/pyston-build
CC=
~/pyston_deps/gcc-4.8.2-install/bin/gcc CXX=~/pyston_deps/gcc-4.8.2-install/bin/g++
~/pyston_deps/cmake-3.0.0/bin/cmake -GNinja ~/pyston -DCMAKE_MAKE_PROGRAM=$HOME/pyston_deps/ninja/ninja -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,$HOME/pyston_deps/gcc-4.8.2-install/lib64" -DGCC_INSTALL_PREFIX=~/pyston_deps/gcc-4.8.2-install
CC=
"ccache $HOME/pyston_deps/gcc-4.8.2-install/bin/gcc" CXX="ccache $HOME/pyston_deps/gcc-4.8.2-install/bin/g++"
~/pyston_deps/cmake-3.0.0/bin/cmake -GNinja ~/pyston -DCMAKE_MAKE_PROGRAM=$HOME/pyston_deps/ninja/ninja -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,$HOME/pyston_deps/gcc-4.8.2-install/lib64" -DGCC_INSTALL_PREFIX=~/pyston_deps/gcc-4.8.2-install
~/pyston_deps/ninja/ninja check-pyston
```
...
...
@@ -294,7 +294,7 @@ On Ubuntu 12.04, you need a new cmake in order to use ninja, but can install nin
```
mkdir ~/pyston-build
cd ~/pyston-build
CC=
~/pyston_deps/gcc-4.8.2-install/bin/gcc CXX=~/pyston_deps/gcc-4.8.2-install/bin/g++
~/pyston_deps/cmake-3.0.0/bin/cmake -GNinja ~/pyston -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,$HOME/pyston_deps/gcc-4.8.2-install/lib64" -DGCC_INSTALL_PREFIX=~/pyston_deps/gcc-4.8.2-install
CC=
"ccache $HOME/pyston_deps/gcc-4.8.2-install/bin/gcc" CXX="ccache $HOME/pyston_deps/gcc-4.8.2-install/bin/g++"
~/pyston_deps/cmake-3.0.0/bin/cmake -GNinja ~/pyston -DCMAKE_EXE_LINKER_FLAGS="-Wl,-rpath,$HOME/pyston_deps/gcc-4.8.2-install/lib64" -DGCC_INSTALL_PREFIX=~/pyston_deps/gcc-4.8.2-install
ninja check-pyston
```
...
...
@@ -303,7 +303,10 @@ If your system provides a new enough GCC and cmake, you can just do:
```
mkdir ~/pyston-build
cd ~/pyston-build
CC=
gcc CXX=g++
cmake -GNinja ~/pyston
CC=
'ccache gcc' CXX='ccache g++'
cmake -GNinja ~/pyston
ninja check-pyston
```
Other important options:
-
`-DCMAKE_BUILD_TYPE=Debug`
(or Release, but defaults to Release I believe)
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