Skip to content

Commit e36e131

Browse files
committed
[libc] Use <assert.h> in overlay mode for LIBC_ASSERT
Summary: This uses `internal::exit` which is not built in overlay mode, leading to linker errors. Fix this to just use `assert.h`.
1 parent bc4c3bf commit e36e131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/libc_assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define LLVM_LIBC_SRC___SUPPORT_LIBC_ASSERT_H
1111

1212
#include "src/__support/macros/config.h"
13-
#ifdef LIBC_COPT_USE_C_ASSERT
13+
#if defined(LIBC_COPT_USE_C_ASSERT) || !defined(LIBC_FULL_BUILD)
1414

1515
// The build is configured to just use the public <assert.h> API
1616
// for libc's internal assertions.

0 commit comments

Comments
 (0)