Skip to content

Commit 2792626

Browse files
committed
Windows asan triplet
1 parent 47e7afb commit 2792626

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

vcpkg.just

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,14 @@ in_git_repo := path_exists(join(justfile_directory(), ".git"))
2929
download_vcpkg_bin:
3030
- rm -r '{{join(justfile_directory(), "vcpkg")}}'
3131
mkdir '{{join(justfile_directory(), "vcpkg")}}'
32-
git clone https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "vcpkg")}}'
32+
git clone --depth 1 https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "vcpkg")}}'
3333
curl -L --fail --show-error '{{vcpkg_tool_url}}' -o '{{join(justfile_directory(), "vcpkg", "vcpkg.exe")}}'
3434

35+
3536
[unix]
3637
download_vcpkg_bin:
3738
- rm -r '{{join(justfile_directory(), "vcpkg")}}'
38-
git clone https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "vcpkg")}}'
39+
git clone --depth 1 https://github.com/microsoft/vcpkg.git '{{join(justfile_directory(), "vcpkg")}}'
3940
curl -L --fail --show-error '{{vcpkg_tool_url}}' -o '{{join(justfile_directory(), "vcpkg", "vcpkg")}}'
4041
chmod +x '{{join(justfile_directory(), "vcpkg", "vcpkg")}}'
4142

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
set(VCPKG_TARGET_ARCHITECTURE x64)
2+
set(VCPKG_CRT_LINKAGE static)
3+
set(VCPKG_LIBRARY_LINKAGE static)
4+
5+
set(VCPKG_C_FLAGS "/fsanitize=address")
6+
set(VCPKG_CXX_FLAGS "/fsanitize=address")

0 commit comments

Comments
 (0)