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
0084e712
Commit
0084e712
authored
Feb 23, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #319 from dagar/submodules
cmake auto update libunwind and libpypa git submodules
parents
befacc74
c03b99e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
CMakeLists.txt
CMakeLists.txt
+9
-0
No files found.
CMakeLists.txt
View file @
0084e712
...
...
@@ -74,6 +74,13 @@ add_custom_target(llvm_gotorev python ${CMAKE_SOURCE_DIR}/tools/git_svn_gotorev.
add_custom_target
(
clang_gotorev python
${
CMAKE_SOURCE_DIR
}
/tools/git_svn_gotorev.py
${
DEPS_DIR
}
/llvm-trunk/tools/clang
${
LLVMREV
}
clang_patches WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
)
add_custom_target
(
llvm_up DEPENDS llvm_gotorev clang_gotorev
)
set
(
LIBUNWIND_GITHEAD
"
${
CMAKE_SOURCE_DIR
}
/.git/modules/libunwind/HEAD"
)
set
(
LIBPYPA_GITHEAD
"
${
CMAKE_SOURCE_DIR
}
/.git/modules/libpypa/HEAD"
)
add_custom_command
(
OUTPUT
${
LIBUNWIND_GITHEAD
}
${
LIBPYPA_GITHEAD
}
COMMAND git submodule update --init WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
DEPENDS
${
CMAKE_SOURCE_DIR
}
/.gitmodules
)
add_custom_target
(
gitsubmodules DEPENDS
${
LIBUNWIND_GITHEAD
}
${
LIBPYPA_GITHEAD
}
)
# llvm
set
(
LLVM_TARGETS_TO_BUILD
"host"
CACHE STRING
"LLVM targets"
)
#set(LLVM_EXTERNAL_CLANG_SOURCE_DIR "${CMAKE_SOURCE_DIR}/clang" CACHE String "Clang directory")
...
...
@@ -96,6 +103,7 @@ endif()
ExternalProject_Add
(
libunwind
PREFIX libunwind
SOURCE_DIR
${
CMAKE_SOURCE_DIR
}
/libunwind
DEPENDS gitsubmodules
UPDATE_COMMAND autoreconf -i
CONFIGURE_COMMAND
${
CMAKE_SOURCE_DIR
}
/libunwind/configure CFLAGS=
${
LIBUNWIND_FLAGS
}
CXXFLAGS=
${
LIBUNWIND_FLAGS
}
--prefix=
${
CMAKE_BINARY_DIR
}
/libunwind --enable-shared=0
${
LIBUNWIND_DEBUG
}
${
LIBUNWIND_DEBUG_FRAME
}
LOG_UPDATE ON
...
...
@@ -105,6 +113,7 @@ ExternalProject_Add(libunwind
# libpypa
add_subdirectory
(
libpypa
)
add_dependencies
(
pypa gitsubmodules
)
# valgrind
if
(
ENABLE_VALGRIND
)
...
...
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