mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-02 02:55:35 +00:00
Fix link error for profile version. Also, build Burg differently
for different architectures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3862 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c4f67270f3
commit
12520cdab4
@ -126,7 +126,7 @@ endif
|
|||||||
# Special tools used while building the LLVM tree. Burg is built as part of the
|
# Special tools used while building the LLVM tree. Burg is built as part of the
|
||||||
# utils directory.
|
# utils directory.
|
||||||
#
|
#
|
||||||
BURG := $(LEVEL)/utils/Burg/burg
|
BURG := $(LEVEL)/utils/Burg/burg.$(UNAME)
|
||||||
RunBurg := $(BURG) $(BURG_OPTS)
|
RunBurg := $(BURG) $(BURG_OPTS)
|
||||||
|
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ Link := $(CXX)
|
|||||||
endif
|
endif
|
||||||
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
||||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
||||||
LinkP := $(LinkO) $(PROFILE)
|
LinkP := $(Link) -O3 -L $(LIBPROFILE) $(PROFILE)
|
||||||
|
|
||||||
# Create one .o file from a bunch of .o files...
|
# Create one .o file from a bunch of .o files...
|
||||||
Relink = ld -r
|
Relink = ld -r
|
||||||
@ -358,9 +358,9 @@ ifndef ENABLE_OPTIMIZED
|
|||||||
TOOLEXENAMES := $(TOOLEXENAME_G)
|
TOOLEXENAMES := $(TOOLEXENAME_G)
|
||||||
else
|
else
|
||||||
ifdef ENABLE_PROFILING
|
ifdef ENABLE_PROFILING
|
||||||
TOOLEXENAMES := $(TOOLEXENAME_O)
|
|
||||||
else
|
|
||||||
TOOLEXENAMES := $(TOOLEXENAME_P)
|
TOOLEXENAMES := $(TOOLEXENAME_P)
|
||||||
|
else
|
||||||
|
TOOLEXENAMES := $(TOOLEXENAME_O)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -126,7 +126,7 @@ endif
|
|||||||
# Special tools used while building the LLVM tree. Burg is built as part of the
|
# Special tools used while building the LLVM tree. Burg is built as part of the
|
||||||
# utils directory.
|
# utils directory.
|
||||||
#
|
#
|
||||||
BURG := $(LEVEL)/utils/Burg/burg
|
BURG := $(LEVEL)/utils/Burg/burg.$(UNAME)
|
||||||
RunBurg := $(BURG) $(BURG_OPTS)
|
RunBurg := $(BURG) $(BURG_OPTS)
|
||||||
|
|
||||||
|
|
||||||
@ -167,7 +167,7 @@ Link := $(CXX)
|
|||||||
endif
|
endif
|
||||||
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
LinkG := $(Link) -g -L $(LIBDEBUG) $(STRIP)
|
||||||
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
LinkO := $(Link) -O3 -L $(LIBRELEASE)
|
||||||
LinkP := $(LinkO) $(PROFILE)
|
LinkP := $(Link) -O3 -L $(LIBPROFILE) $(PROFILE)
|
||||||
|
|
||||||
# Create one .o file from a bunch of .o files...
|
# Create one .o file from a bunch of .o files...
|
||||||
Relink = ld -r
|
Relink = ld -r
|
||||||
@ -358,9 +358,9 @@ ifndef ENABLE_OPTIMIZED
|
|||||||
TOOLEXENAMES := $(TOOLEXENAME_G)
|
TOOLEXENAMES := $(TOOLEXENAME_G)
|
||||||
else
|
else
|
||||||
ifdef ENABLE_PROFILING
|
ifdef ENABLE_PROFILING
|
||||||
TOOLEXENAMES := $(TOOLEXENAME_O)
|
|
||||||
else
|
|
||||||
TOOLEXENAMES := $(TOOLEXENAME_P)
|
TOOLEXENAMES := $(TOOLEXENAME_P)
|
||||||
|
else
|
||||||
|
TOOLEXENAMES := $(TOOLEXENAME_O)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user