Skip to content

Commit

Permalink
Remove redundant sysroot option
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Jul 11, 2024
1 parent 28ff7d0 commit 1168509
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1168509

Please sign in to comment.