Skip to content

Commit 1fe1f14

Browse files
aus-inteligcbot
authored andcommitted
Remove some unused code
1 parent fc0de88 commit 1fe1f14

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

IGC/BiFModule/linux/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,7 @@ function(igc_resource_embed_file symbolFilesVarName symbolName embeddedFilePath)
6060
set(_dependency "${embeddedFilePath}")
6161
endif()
6262

63-
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
64-
set(IGC_PYTHON "${BS_DIR_EXTERNAL_COMPONENTS}/build-tools/python2-win32/python.exe")
65-
else()
66-
find_program(IGC_PYTHON NAMES "python2" "python")
67-
endif()
63+
find_program(IGC_PYTHON NAMES "python2" "python")
6864

6965
add_custom_command(OUTPUT "${_symbolFilePath}"
7066
COMMAND "${CMAKE_COMMAND}" -E make_directory "${IGC_BUILD__BIF_EMBEDDER_DIR}"

IGC/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,11 +1983,7 @@ if(NOT GFX_DEVELOPMENT_DIR)
19831983
get_filename_component(GFX_DEVELOPMENT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../ ABSOLUTE)
19841984
endif()
19851985

1986-
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
1987-
set(PYTHON_EXECUTABLE "${BS_DIR_EXTERNAL_COMPONENTS}/build-tools/python3-win64/python.exe")
1988-
else()
1989-
find_program(PYTHON_EXECUTABLE NAMES "python3" "python")
1990-
endif()
1986+
find_program(PYTHON_EXECUTABLE NAMES "python3" "python")
19911987

19921988
set(IGC_CODEGEN_BASE_DIR "${CMAKE_CURRENT_BINARY_DIR}/autogen")
19931989
if(MSVC_IDE)

external/llvm/CMakeLists.txt

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,8 @@
3030

3131
cmake_minimum_required(VERSION 3.13.4)
3232

33-
if(BS_USE_OSDM_BUILD_SYSTEM)
34-
include(${BUILD_SYS_INC}/utils.cmake)
35-
bs_find_patch()
36-
bs_find_python3()
37-
else()
38-
if (NOT PATCH)
39-
find_program(PATCH NAMES patch patch.exe)
40-
endif()
41-
if (NOT PYTHON)
42-
find_program(PYTHON NAMES python3 python python3.exe python.exe)
43-
endif()
44-
endif()
33+
find_program(PATCH NAMES patch patch.exe)
34+
find_program(PYTHON NAMES python3 python python3.exe python.exe)
4535

4636
include(llvm_utils.cmake)
4737

0 commit comments

Comments
 (0)