Skip to content
Commit 3da90ad2 authored by Nicholas Lowell's avatar Nicholas Lowell Committed by Carles Cufí
Browse files

cmake: use all compile options arguments for uniqueness



zephyr_library_compile_options() was attempting to create
unique hashes for compile options in order to prevent creating
them multiple times.  However, it was only using the first
argument to create the hash, so if multiple libraries had
different compile options but the first line was the same,
the second set would be mistaken for the first set and would
actually be passed the first set during compilation instead
of its own set.

The fix should be to use the entire compile options argument
list to create the hash so they should only match if the entire
options list is exactly the same.

This is a continued fix for #43835

Signed-off-by: default avatarNicholas Lowell <nlowell@lexmark.com>
parent 0c053190
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment