Skip to content

Commit

Permalink
Compile libunwind in release mode
Browse files Browse the repository at this point in the history
Default build is `DEBUG`. Switch to `RelWithDebInfo`.

```
**CMAKE_BUILD_TYPE**:STRING
  Sets the build type for ``make`` based generators. Possible values are
  Release, Debug, RelWithDebInfo and MinSizeRel. On systems like Visual Studio
  the user sets the build type with the IDE settings.
```
  • Loading branch information
etan-status committed Jan 27, 2025
1 parent 6e02c0b commit 29a0641
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ $(LIBDIR)/libunwind.a:
-DLLVM_ENABLE_RUNTIMES="libunwind" \
-DLIBUNWIND_ENABLE_SHARED=OFF -DLIBUNWIND_ENABLE_STATIC=ON \
-DLIBUNWIND_INCLUDE_DOCS=OFF \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX="$(CURDIR)/install/usr" \
$(CMAKE_ARGS) build $(HANDLE_OUTPUT) && \
$(MAKE) -C build VERBOSE=$(V) clean $(HANDLE_OUTPUT) && \
Expand Down

0 comments on commit 29a0641

Please sign in to comment.