Skip to content

Commit

Permalink
Merge pull request sass#2176 from delapuente/debug-builds
Browse files Browse the repository at this point in the history
Enabling debug builds by setting env var DEBUG=1
  • Loading branch information
xzyfer authored Sep 12, 2016
2 parents 6de56c8 + 59012e4 commit be81001
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,10 @@ ifneq (Windows,$(UNAME))
endif

ifneq ($(BUILD),shared)
BUILD = static
BUILD := static
endif
ifeq ($(DEBUG),1)
BUILD := debug-$(BUILD)
endif

ifeq (,$(TRAVIS_BUILD_DIR))
Expand Down
6 changes: 6 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ Since LibSass is a pure library, tests are run through the [SassSpec](https://gi

To run tests against LibSass while developing, you can run `./script/spec`. This will clone SassC and Sass-Spec under the project folder and then run the Sass-Spec test suite. You may want to update the clones to ensure you have the latest version.

### DEBUG builds

Set the environment variable `DEBUG` to `1` to enable debug builds that can be debugged
with `gdb`, `lldb` and others. E.g.: use `$ DEBUG=1 ./script/spec` to run the tests with
a debug build.

Library Usage
-------------

Expand Down

0 comments on commit be81001

Please sign in to comment.