Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10d0931

Browse files
authored
Don't add -stdlib-libc++ to CFLAGS (it's a C++, not C, option) (#130)
Co-authored-by: cpsievert <[email protected]>
1 parent f248fe5 commit 10d0931

File tree

4 files changed

+22
-16
lines changed

4 files changed

+22
-16
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sass 0.4.6.9000
22

3-
3+
* Closed #129: Fixed a compilation warning on latest Apple Clang (15). (#130)
44

55
# sass 0.4.6
66

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,19 @@
55

66
[![R build
77
status](https://github.com/rstudio/sass/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rstudio/sass/actions)
8-
[![CRAN\_Status\_Badge](http://www.r-pkg.org/badges/version/sass)](https://cran.r-project.org/package=sass)
8+
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sass)](https://cran.r-project.org/package=sass)
99

1010
<style>
1111
pre {
1212
border: 1px solid #eee;
1313
}
14-
15-
pre.r {
14+
&#10;pre.r {
1615
background-color: #ffffff;
1716
}
18-
19-
pre.r code {
17+
&#10;pre.r code {
2018
background-color: #ffffff;
2119
}
22-
23-
pre.css {
20+
&#10;pre.css {
2421
margin-top: -1.25rem;
2522
background-color: #f8f8f8;
2623
border-radius: 0;
@@ -57,13 +54,11 @@ remotes::install_github("rstudio/sass")
5754
To compile Sass into CSS, provide Sass to the `input` argument of the
5855
`sass()` function. `input` can be any of the following:
5956

60-
- An R string (as in the example below).
61-
- A named `list()` defining [Sass
62-
variables](https://rstudio.github.io/sass/articles/sass.html#variables).
63-
- A `sass_file()`, `sass_import()`, or `sass_layer()`.
64-
- A nested `list()` comprising of all the above.
65-
66-
<!-- end list -->
57+
- An R string (as in the example below).
58+
- A named `list()` defining [Sass
59+
variables](https://rstudio.github.io/sass/articles/sass.html#variables).
60+
- A `sass_file()`, `sass_import()`, or `sass_layer()`.
61+
- A nested `list()` comprising of all the above.
6762

6863
``` r
6964
library(sass)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/libsass/Makefile b/src/libsass/Makefile
2+
index 6f81feb..41e3739 100644
3+
--- a/src/libsass/Makefile
4+
+++ b/src/libsass/Makefile
5+
@@ -110,7 +110,6 @@ ifeq ($(STATIC_LIBSTDCPP),1)
6+
endif
7+
8+
ifeq ($(UNAME),Darwin)
9+
- CFLAGS += -stdlib=libc++
10+
CXXFLAGS += -stdlib=libc++
11+
LDFLAGS += -stdlib=libc++
12+
endif

src/libsass/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ ifeq ($(STATIC_LIBSTDCPP),1)
110110
endif
111111

112112
ifeq ($(UNAME),Darwin)
113-
CFLAGS += -stdlib=libc++
114113
CXXFLAGS += -stdlib=libc++
115114
LDFLAGS += -stdlib=libc++
116115
endif

0 commit comments

Comments
 (0)