Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 96d382b

Browse files
lwesierspaigeale
authored andcommitted
Adding another abs paths for finding other IGC components.
Change-Id: I47fd122cea0cf82bdb836fb1ca2b3a24335586a0
1 parent b2572b9 commit 96d382b

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,15 @@ endif()
126126
if(NOT EXISTS ${LLVM_SOURCE_URL})
127127
# Use LLVM sources stored at fixed location
128128
set(LLVM_SOURCE_URL ${CMAKE_CURRENT_SOURCE_DIR}/../llvm_source)
129-
if(NOT EXISTS ${LLVM_SOURCE_URL})
130-
# Use tar archive with stock LLVM sources.
131-
set(LLVM_SOURCE_USE_TARBALL true)
132-
set(LLVM_SOURCE_URL "${BS_DIR_MIGRATION_BINARIES}/igc/llvm/llvm-4.0.0.src.tar.xz")
133-
endif()
129+
endif()
130+
if(NOT EXISTS ${LLVM_SOURCE_URL})
131+
# Use LLVM sources stored at fixed location
132+
set(LLVM_SOURCE_URL ${CMAKE_CURRENT_SOURCE_DIR}/../../../../llvm_source)
133+
endif()
134+
if(NOT EXISTS ${LLVM_SOURCE_URL})
135+
# Use tar archive with stock LLVM sources.
136+
set(LLVM_SOURCE_USE_TARBALL true)
137+
set(LLVM_SOURCE_URL "${BS_DIR_MIGRATION_BINARIES}/igc/llvm/llvm-4.0.0.src.tar.xz")
134138
endif()
135139

136140
# Use LLVM stock sources or patched stock sources

0 commit comments

Comments
 (0)