From 11685092b86dbb76bd34a20cba01188bfb1c049c Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 17 Jun 2024 12:53:42 -0700 Subject: [PATCH] Remove redundant sysroot option --- tests/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 08cfdc5..23010fa 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -36,11 +36,9 @@ function(add_testcase runwasi test) # Add a new test executable based on `test` add_executable(${target_name} ${test}) - # Configure all the compile options necessary. For example `--sysroot` - # forces usage of the just-built sysroot. Use `--target` here if the - # target doesn't look like it's already in the name of the compiler as - # well. - target_compile_options(${target_name} PRIVATE --sysroot=${wasi_sysroot}) + # Configure all the compile options necessary. For example `--target` here + # if the target doesn't look like it's already in the name of the compiler + # as well. if(NOT(CMAKE_C_COMPILER MATCHES ${target})) target_compile_options(${target_name} PRIVATE --target=${target}) endif()