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
c03b99e4
Commit
c03b99e4
authored
Feb 22, 2015
by
Daniel Agar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake auto update libunwind and libpypa git submodules
parent
befacc74
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 @
c03b99e4
...
...
@@ -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