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
0d932768
Commit
0d932768
authored
Dec 17, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Copy the lib_pyston directory into cmake
parent
9c3659f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
CMakeLists.txt
CMakeLists.txt
+1
-0
Makefile
Makefile
+2
-2
lib_pyston/CMakeLists.txt
lib_pyston/CMakeLists.txt
+16
-0
No files found.
CMakeLists.txt
View file @
0d932768
...
@@ -135,6 +135,7 @@ link_directories(${CMAKE_BINARY_DIR}/libunwind/lib)
...
@@ -135,6 +135,7 @@ link_directories(${CMAKE_BINARY_DIR}/libunwind/lib)
link_directories
(
${
LLVM_LIBRARY_DIRS
}
)
link_directories
(
${
LLVM_LIBRARY_DIRS
}
)
add_subdirectory
(
lib_python
)
add_subdirectory
(
lib_python
)
add_subdirectory
(
lib_pyston
)
add_subdirectory
(
src
)
add_subdirectory
(
src
)
add_subdirectory
(
test/test_extension
)
add_subdirectory
(
test/test_extension
)
add_subdirectory
(
test/unittests
)
add_subdirectory
(
test/unittests
)
...
...
Makefile
View file @
0d932768
...
@@ -749,10 +749,10 @@ $(call link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
...
@@ -749,10 +749,10 @@ $(call link,_release,$(OPT_OBJS),$(LDFLAGS_RELEASE),$(LLVM_RELEASE_DEPS))
else
else
.PHONY
:
pyston_dbg pyston_release
.PHONY
:
pyston_dbg pyston_release
pyston_dbg
:
pyston_dbg
:
$(NINJA)
-C
$(HOME)
/pyston-build-dbg pyston copy_stdlib
$(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
:
$(NINJA)
-C
$(HOME)
/pyston-build-release pyston copy_stdlib
$(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
...
...
lib_pyston/CMakeLists.txt
0 → 100644
View file @
0d932768
# Copy any changed lib_pyston sources:
file
(
GLOB_RECURSE LIBPYSTON_SRCS .
"*.py"
)
SET
(
LIBPYSTON_TARGETS
""
)
foreach
(
STDLIB_FILE
${
LIBPYSTON_SRCS
}
)
file
(
RELATIVE_PATH FN_REL
${
CMAKE_SOURCE_DIR
}
${
STDLIB_FILE
}
)
set
(
TARGET
${
CMAKE_BINARY_DIR
}
/
${
FN_REL
}
)
add_custom_command
(
OUTPUT
${
TARGET
}
COMMAND
${
CMAKE_COMMAND
}
-E copy_if_different
${
STDLIB_FILE
}
${
TARGET
}
DEPENDS
${
STDLIB_FILE
}
COMMENT
"Copying
${
FN_REL
}
"
)
set
(
LIBPYSTON_TARGETS
${
LIBPYSTON_TARGETS
}
${
TARGET
}
)
endforeach
(
STDLIB_FILE
)
add_custom_target
(
copy_libpyston ALL DEPENDS
${
LIBPYSTON_TARGETS
}
)
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