Skip to content

Commit

Permalink
Merge branch 'main' into swift_error
Browse files Browse the repository at this point in the history
  • Loading branch information
xiazhvera authored Jul 17, 2024
2 parents 1454a85 + 532820e commit 3138c2c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ jobs:
operating_system: freebsd
version: '13.2'
run: |
sudo pkg install -y python3 py39-urllib3 py39-pip cmake
sudo pkg install -y python3 devel/py-pip net/py-urllib3 cmake
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')"
chmod a+x builder
./builder build -p ${{ env.PACKAGE_NAME }}
Expand Down
10 changes: 6 additions & 4 deletions cmake/AwsSanitizers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ set(SANITIZERS "address;undefined" CACHE STRING "List of sanitizers to build wit
# sanitizer: The sanitizer to check
# out_variable: The variable to assign the result to. Defaults to HAS_SANITIZER_${sanitizer}
function(aws_check_sanitizer sanitizer)

if(NOT ${ARGN})
set(out_variable "${ARGN}")
else()
list(LENGTH ARGN extra_count)
if(${extra_count} EQUAL 0)
set(out_variable HAS_SANITIZER_${sanitizer})
# Sanitize the variable name to remove illegal characters
string(MAKE_C_IDENTIFIER ${out_variable} out_variable)
elseif(${extra_count} EQUAL 1)
set(out_variable ${ARGN})
else()
message(FATAL_ERROR "Error: aws_check_sanitizer() called with multiple out variables")
endif()

if(ENABLE_SANITIZERS)
Expand Down

0 comments on commit 3138c2c

Please sign in to comment.