Skip to content

Instantly share code, notes, and snippets.

@datlife
datlife / README.md
Last active May 23, 2024 21:29
Build LLVM / Clang on MacOS

Build LLVM / Clang on MacOS

Problem

Built-in Clang / LLVM shipped by Xcode does not support Leak Santizer (-fsantize=leak) feature. For example, this code has memory leak:

// File: main.c

#include <stdlib.h>