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
1199a6b2
Commit
1199a6b2
authored
Feb 27, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add makefile helpers for setting up CMake system with defaults it expects
parent
371e0542
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
Makefile
Makefile
+20
-2
No files found.
Makefile
View file @
1199a6b2
...
@@ -766,11 +766,29 @@ $(call link,_debug,$(OBJS),$(LDFLAGS_DEBUG),$(LLVM_DEBUG_DEPS))
...
@@ -766,11 +766,29 @@ $(call link,_debug,$(OBJS),$(LDFLAGS_DEBUG),$(LLVM_DEBUG_DEPS))
$(call
link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
$(call
link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
else
else
CMAKE_DIR_DBG
:=
$(HOME)
/pyston-build-dbg
CMAKE_DIR_RELEASE
:=
$(HOME)
/pyston-build-release
CMAKE_SETUP_DBG
:=
$(CMAKE_DIR_DBG)
/build.ninja
CMAKE_SETUP_RELEASE
:=
$(CMAKE_DIR_RELEASE)
/build.ninja
.PHONY
:
cmake_check
cmake_check
:
@
clang
--version
>
/dev/null
||
(
echo
"clang not available"
;
false
)
@
cmake
--version
>
/dev/null
||
(
echo
"cmake not available"
;
false
)
@
ninja
--version
>
/dev/null
||
(
echo
"ninja not available"
;
false
)
$(CMAKE_SETUP_DBG)
:
@
$(MAKE)
cmake_check
@
mkdir
-p
$(CMAKE_DIR_DBG)
cd
$(CMAKE_DIR_DBG)
;
CC
=
'clang'
CXX
=
'clang++'
cmake
-GNinja
$(HOME)
/pyston
-DCMAKE_BUILD_TYPE
=
Debug
$(CMAKE_SETUP_RELEASE)
:
@
$(MAKE)
cmake_check
@
mkdir
-p
$(CMAKE_DIR_RELEASE)
cd
$(CMAKE_DIR_DBG)
;
CC
=
'clang'
CXX
=
'clang++'
cmake
-GNinja
$(HOME)
/pyston
-DCMAKE_BUILD_TYPE
=
Release
.PHONY
:
pyston_dbg pyston_release
.PHONY
:
pyston_dbg pyston_release
pyston_dbg
:
pyston_dbg
:
$(CMAKE_SETUP_DBG)
$(NINJA)
-C
$(HOME)
/pyston-build-dbg pyston copy_stdlib copy_libpyston
$(NINJAFLAGS)
$(NINJA)
-C
$(HOME)
/pyston-build-dbg pyston copy_stdlib copy_libpyston
$(NINJAFLAGS)
ln
-sf
$(HOME)
/pyston-build-dbg/pyston pyston_dbg
ln
-sf
$(HOME)
/pyston-build-dbg/pyston pyston_dbg
pyston_release
:
pyston_release
:
$(CMAKE_SETUP_RELEASE)
$(NINJA)
-C
$(HOME)
/pyston-build-release pyston copy_stdlib copy_libpyston
$(NINJAFLAGS)
$(NINJA)
-C
$(HOME)
/pyston-build-release pyston copy_stdlib copy_libpyston
$(NINJAFLAGS)
ln
-sf
$(HOME)
/pyston-build-release/pyston pyston_release
ln
-sf
$(HOME)
/pyston-build-release/pyston pyston_release
endif
endif
...
...
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