Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changesets/cmake-path-patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
release: patch
summary: Make variable _stm32_arm_gcc_realpath case insensitive

In some systems, by default, the installation directory name is in lowercase. Making it case insensitive, only the version matters.
2 changes: 1 addition & 1 deletion Inc/HALAL/Models/DMA/DMA2.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using std::array;
using std::size_t;
using std::span;
using std::tuple;

#define MAX_STREAMS 16

extern "C" {
Expand Down
3 changes: 2 additions & 1 deletion toolchains/stm32.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ if(NOT STM32_CLT_ROOT)
endif()

get_filename_component(_stm32_arm_gcc_realpath "${_stm32_arm_gcc}" REALPATH)
string(REGEX MATCH "STM32CubeCLT[_-]([0-9]+\\.[0-9]+\\.[0-9]+)" _stm32_path_match "${_stm32_arm_gcc_realpath}")
string(TOLOWER "${_stm32_arm_gcc_realpath}" _stm32_arm_gcc_lower)
string(REGEX MATCH "stm32cubeclt[_-]([0-9]+\\.[0-9]+\\.[0-9]+)" _stm32_path_match "${_stm32_arm_gcc_lower}")

if(NOT CMAKE_MATCH_1)
message(FATAL_ERROR
Expand Down
Loading