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
bb3a19e1
Commit
bb3a19e1
authored
Nov 19, 2014
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hmm that solution ended up rebuilding LLVM every time, try this instead
parent
ca1626ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
src/Makefile
src/Makefile
+9
-12
No files found.
src/Makefile
View file @
bb3a19e1
...
@@ -408,13 +408,13 @@ Makefile.local:
...
@@ -408,13 +408,13 @@ Makefile.local:
LLVM_CONFIGURATION
:=
$(LLVM_BUILD)
/Makefile.config
LLVM_CONFIGURATION
:=
$(LLVM_BUILD)
/Makefile.config
# First, specify when we need to rebuild the different targets:
# First, specify when we need to rebuild the different targets:
$(LLVM_BUILD)/built_quick
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
$(LLVM_BUILD)/built_quick
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
$(MAKE)
llvm_quick
$(MAKE)
llvm_quick
$(LLVM_BUILD)/built_debug
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
$(LLVM_BUILD)/built_debug
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
$(MAKE)
llvm_debug
$(MAKE)
llvm_debug
$(LLVM_BUILD)/built_release
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
$(LLVM_BUILD)/built_release
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
$(MAKE)
llvm_release
$(MAKE)
llvm_release
$(LLVM_BUILD)/built_profile
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
$(LLVM_BUILD)/built_profile
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
$(MAKE)
llvm_profile
$(MAKE)
llvm_profile
# Now, specify that we shouldn't check the timestamps of dependencies until after
# Now, specify that we shouldn't check the timestamps of dependencies until after
# the llvm rebuild finishes, if one is happening, but do it with order-only
# the llvm rebuild finishes, if one is happening, but do it with order-only
...
@@ -469,10 +469,6 @@ ifneq ($(ENABLE_INTEL_JIT_EVENTS),0)
...
@@ -469,10 +469,6 @@ ifneq ($(ENABLE_INTEL_JIT_EVENTS),0)
LLVM_CONFIGURE_LINE
+=
--with-intel-jitevents
LLVM_CONFIGURE_LINE
+=
--with-intel-jitevents
endif
endif
.PHONY
:
llvm_configure_if_needed
llvm_configure_if_needed
:
$(LLVM_SRC)/_patched
$(MAKE)
$(LLVM_CONFIGURATION)
$(LLVM_CONFIGURATION)
:
$(LLVM_SRC)/configure $(LLVM_CONFIG_INCL)
$(LLVM_CONFIGURATION)
:
$(LLVM_SRC)/configure $(LLVM_CONFIG_INCL)
mkdir
-p
$(LLVM_BUILD)
mkdir
-p
$(LLVM_BUILD)
cd
$(LLVM_BUILD)
;
\
cd
$(LLVM_BUILD)
;
\
...
@@ -540,19 +536,19 @@ llvm_test_release: llvm_release
...
@@ -540,19 +536,19 @@ llvm_test_release: llvm_release
llvm_test_all
:
llvm_release
llvm_test_all
:
llvm_release
$(MAKE)
-C
$(LLVM_BUILD)
ENABLE_OPTIMIZED
=
1
DISABLE_ASSERTIONS
=
1 check-all
$(MAKE)
-C
$(LLVM_BUILD)
ENABLE_OPTIMIZED
=
1
DISABLE_ASSERTIONS
=
1 check-all
llvm/quick/%
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
llvm/quick/%
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
mkdir
-p
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%,
$@
)
mkdir
-p
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%,
$@
)
$(VERB)
if
[
!
-f
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/quick/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(VERB)
if
[
!
-f
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/quick/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
ENABLE_OPTIMIZED
=
1
DEBUG_RUNTIME
=
0
NO_DEBUG_SYMBOLS
=
1
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/quick/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
ENABLE_OPTIMIZED
=
1
DEBUG_RUNTIME
=
0
NO_DEBUG_SYMBOLS
=
1
llvm/release/%
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
llvm/release/%
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
mkdir
-p
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%,
$@
)
mkdir
-p
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%,
$@
)
$(VERB)
if
[
!
-f
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/release/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(VERB)
if
[
!
-f
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/release/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
ENABLE_OPTIMIZED
=
1
DISABLE_ASSERTIONS
=
1
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/release/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
ENABLE_OPTIMIZED
=
1
DISABLE_ASSERTIONS
=
1
llvm/debug/%
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
llvm/debug/%
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
mkdir
-p
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%,
$@
)
mkdir
-p
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%,
$@
)
$(VERB)
if
[
!
-f
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/debug/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(VERB)
if
[
!
-f
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/debug/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
DEBUG_RUNTIME
=
1
DEBUG_SYMBOLS
=
1
ENABLE_OPTIMIZED
=
0
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/debug/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
DEBUG_RUNTIME
=
1
DEBUG_SYMBOLS
=
1
ENABLE_OPTIMIZED
=
0
llvm/profile/%
:
$(LLVM_SRC)/_patched
llvm_configure_if_needed
llvm/profile/%
:
$(LLVM_SRC)/_patched
$(LLVM_CONFIGURATION)
mkdir
-p
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%,
$@
)
mkdir
-p
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%,
$@
)
$(VERB)
if
[
!
-f
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/profile/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(VERB)
if
[
!
-f
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%/Makefile,
$@
)
]
;
then
cp
$(
patsubst
llvm/profile/%,
$(LLVM_SRC)
/%/Makefile,
$@
)
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%/,
$@
)
;
fi
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
CXXFLAGS
=
"-fno-omit-frame-pointer -fno-function-sections"
ENABLE_PROFILING
=
1
ENABLE_OPTIMIZED
=
1
DISABLE_ASSERTIONS
=
1
$(LLVM_MAKE_ARGS)
$(LLVM_BUILD_ENV)
$(MAKE)
-C
$(
patsubst
llvm/profile/%,
$(LLVM_BUILD)
/%,
$@
)
$(LLVM_BUILD_VARS)
CXXFLAGS
=
"-fno-omit-frame-pointer -fno-function-sections"
ENABLE_PROFILING
=
1
ENABLE_OPTIMIZED
=
1
DISABLE_ASSERTIONS
=
1
$(LLVM_MAKE_ARGS)
...
@@ -562,6 +558,7 @@ $(LLVM_SRC)/_patched: $(wildcard ../llvm_patches/*) $(wildcard ../clang_patches/
...
@@ -562,6 +558,7 @@ $(LLVM_SRC)/_patched: $(wildcard ../llvm_patches/*) $(wildcard ../clang_patches/
llvm_up
:
llvm_up
:
python
$(TOOLS_DIR)
/git_svn_gotorev.py
$(LLVM_SRC)
$(LLVM_REVISION)
../llvm_patches
python
$(TOOLS_DIR)
/git_svn_gotorev.py
$(LLVM_SRC)
$(LLVM_REVISION)
../llvm_patches
python
$(TOOLS_DIR)
/git_svn_gotorev.py
$(LLVM_SRC)
/tools/clang
$(LLVM_REVISION)
../clang_patches
python
$(TOOLS_DIR)
/git_svn_gotorev.py
$(LLVM_SRC)
/tools/clang
$(LLVM_REVISION)
../clang_patches
$(MAKE)
$(LLVM_CONFIGURATION)
touch
$(LLVM_SRC)
/_patched
touch
$(LLVM_SRC)
/_patched
# end of llvm rules
# end of llvm rules
...
...
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