Skip to content

Commit

Permalink
Correctly find custom-built llc (#4537)
Browse files Browse the repository at this point in the history
Use `HINTS` instead of `PATHS` in the CMake `find_path` command that tries to find our custom-built `llc`. `HINTS` is searched before the system `PATH`, so a system `llc` will now no longer be picked before ours.

---------

Co-authored-by: Sean T Allen <sean@seantallen.com>
  • Loading branch information
chalcolith and SeanTAllen authored Nov 8, 2024
1 parent 23c2bc9 commit 108289b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .release-notes/4537.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Correctly find custom-built `llc` during build process

Previously our CMake build was failing to find our custom-built `llc` binary, but builds worked by accident if there was a system `llc`. The build system now finds our custom `llc` correctly.
2 changes: 1 addition & 1 deletion src/libponyrt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ set(_ll_except_obj "${CMAKE_BINARY_DIR}/except_try_catch.o")

find_file(_llc_command
NAMES llc.exe llc
PATHS "${CMAKE_BINARY_DIR}/../../libs/bin" "${CMAKE_BINARY_DIR}/../libs/bin"
HINTS "${CMAKE_BINARY_DIR}/../../libs/bin" "${CMAKE_BINARY_DIR}/../libs/bin"
)

if(${CMAKE_HOST_SYSTEM_NAME} MATCHES "Darwin")
Expand Down

0 comments on commit 108289b

Please sign in to comment.