Skip to content

Commit 12229cf

Browse files
committed
Revert 62987. This is already reverted in mainline.
llvm-svn: 65125
1 parent f041a9e commit 12229cf

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

llvm/tools/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ PARALLEL_DIRS := llvm-config \
2525

2626
include $(LEVEL)/Makefile.config
2727

28-
ifeq ($(ENABLE_PIC),1)
28+
# only build new lto project on Darwin for now
29+
ifeq ($(OS),Darwin)
2930
PARALLEL_DIRS += lto
3031
endif
3132

llvm/tools/lto/Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@ LIBRARYNAME = LTO
1616
include $(LEVEL)/Makefile.config
1717

1818
LINK_LIBS_IN_SHARED = 1
19-
SHARED_LIBRARY = 1
20-
DONT_BUILD_RELINKED = 1
19+
ifeq ($(OS),Darwin)
20+
SHARED_LIBRARY = 1
21+
DONT_BUILD_RELINKED = 1
22+
else
23+
BUILD_ARCHIVE = 1
24+
endif
2125

2226
LINK_COMPONENTS := $(TARGETS_TO_BUILD) ipo scalaropts linker bitreader bitwriter
2327

0 commit comments

Comments
 (0)