diff --git a/userspace/aoc2023/CMakeLists.txt b/userspace/aoc2023/CMakeLists.txt index 7f6c4b06..dc23b2af 100644 --- a/userspace/aoc2023/CMakeLists.txt +++ b/userspace/aoc2023/CMakeLists.txt @@ -41,6 +41,9 @@ endforeach() foreach(AOC2023_PROJECT ${AOC2023_PROJECTS}) add_subdirectory(${AOC2023_PROJECT}) add_dependencies(aoc2023 aoc2023_${AOC2023_PROJECT}) + + target_link_options(aoc2023_${AOC2023_PROJECT} PRIVATE -nolibc) + target_compile_options(aoc2023_${AOC2023_PROJECT} PRIVATE -g -O2 -Wall -Wextra -Werror) endforeach() add_dependencies(userspace aoc2023) diff --git a/userspace/aoc2024/CMakeLists.txt b/userspace/aoc2024/CMakeLists.txt index ed25e161..7bf62281 100644 --- a/userspace/aoc2024/CMakeLists.txt +++ b/userspace/aoc2024/CMakeLists.txt @@ -19,6 +19,9 @@ endforeach() foreach(AOC2024_PROJECT ${AOC2024_PROJECTS}) add_subdirectory(${AOC2024_PROJECT}) add_dependencies(aoc2024 aoc2024_${AOC2024_PROJECT}) + + target_link_options(aoc2024_${AOC2024_PROJECT} PRIVATE -nolibc) + target_compile_options(aoc2024_${AOC2024_PROJECT} PRIVATE -g -O2 -Wall -Wextra -Werror) endforeach() add_dependencies(userspace aoc2024)