tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cc-wrapper: handle -nostdinc{++,}
Nikolay Amiantov
9 years ago
24f695ff
081ac25d
+8
-1
1 changed file
expand all
collapse all
unified
split
pkgs
build-support
cc-wrapper
cc-wrapper.sh
+8
-1
pkgs/build-support/cc-wrapper/cc-wrapper.sh
···
22
22
getVersion=0
23
23
nonFlagArgs=0
24
24
[[ "@prog@" = *++ ]] && isCpp=1 || isCpp=0
25
25
+
cppInclude=1
25
26
26
27
params=("$@")
27
28
n=0
···
46
47
isCpp=1
47
48
elif [ "$p" = -nostdlib ]; then
48
49
isCpp=-1
50
50
+
elif [ "$p" = -nostdinc ]; then
51
51
+
cppInclude=0
52
52
+
elif [ "$p" = -nostdinc++ ]; then
53
53
+
cppInclude=0
49
54
elif [ "${p:0:1}" != - ]; then
50
55
nonFlagArgs=1
51
56
elif [ "$p" = -m32 ]; then
···
106
111
fi
107
112
108
113
if [[ "$isCpp" = 1 ]]; then
109
109
-
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE ${NIX_CXXSTDLIB_COMPILE-@default_cxx_stdlib_compile@}"
114
114
+
if [[ "$cppInclude" = 1 ]]; then
115
115
+
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE ${NIX_CXXSTDLIB_COMPILE-@default_cxx_stdlib_compile@}"
116
116
+
fi
110
117
NIX_CFLAGS_LINK="$NIX_CFLAGS_LINK $NIX_CXXSTDLIB_LINK"
111
118
fi
112
119