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
2718c3d3
Commit
2718c3d3
authored
Dec 06, 2014
by
Daniel Agar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake automatically use ccache if found
parent
6ac921b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
CMakeLists.txt
CMakeLists.txt
+11
-0
No files found.
CMakeLists.txt
View file @
2718c3d3
...
...
@@ -15,12 +15,23 @@ if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Release" AND NOT ${CMAKE_BUILD_TYPE} STREQU
message
(
FATAL_ERROR
"CMAKE_BUILD_TYPE must be set to Release or Debug"
)
endif
()
option
(
ENABLE_CCACHE
"enable caching compiler output"
ON
)
option
(
ENABLE_GIL
"threading use GIL"
ON
)
option
(
ENABLE_GRWL
"threading use GRWL"
OFF
)
option
(
ENABLE_INTEL_JIT_EVENTS
"LLVM support for Intel JIT Events API"
OFF
)
option
(
ENABLE_LLVM_DEBUG
"LLVM debug symbols"
OFF
)
option
(
ENABLE_VALGRIND
"pyston valgrind support"
OFF
)
# automatically use ccache if found
if
(
ENABLE_CCACHE
)
find_program
(
CCACHE ccache
)
if
(
CCACHE
)
message
(
STATUS
"found ccache
${
CCACHE
}
"
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_COMPILE
${
CCACHE
}
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_LINK
${
CCACHE
}
)
endif
()
endif
()
# initial clang flags (set here so they're used when building llvm)
set
(
CLANG_FLAGS
"-Qunused-arguments -fcolor-diagnostics"
CACHE STRING
"Clang specific C and CXX flags"
)
if
(
"
${
CMAKE_C_COMPILER_ID
}
"
STREQUAL
"Clang"
)
...
...
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