···11-export NIX_CXXSTDLIB_COMPILE+=" -isystem $(echo -n @gcc@/include/c++/*) -isystem $(echo -n @gcc@/include/c++/*)/$(@gcc@/bin/gcc -dumpmachine)"
22-export NIX_CXXSTDLIB_LINK=" -stdlib=libstdc++"
11+# The `hostOffset` describes how the host platform of the dependencies are slid
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+1212+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem $(echo -n @gcc@/include/c++/*) -isystem $(echo -n @gcc@/include/c++/*)/$(@gcc@/bin/gcc -dumpmachine)"
1313+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libstdc++"
···11+# The `hostOffset` describes how the host platform of the dependencies are slid
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
···11+# The `hostOffset` describes how the host platform of the dependencies are slid
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
···11+# The `hostOffset` describes how the host platform of the dependencies
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
···11+# The `hostOffset` describes how the host platform of the dependencies
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
···11+# The `hostOffset` describes how the host platform of the dependencies
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
···11+# The `hostOffset` describes how the host platform of the dependencies
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
···11+# The `hostOffset` describes how the host platform of the dependencies
22+# relative to the depending package. It is brought into scope of the setup hook
33+# defined as the role of the dependency whose hooks is being run.
44+case $hostOffset in
55+ -1) local role='BUILD_' ;;
66+ 0) local role='' ;;
77+ 1) local role='TARGET_' ;;
88+ *) echo "cc-wrapper: Error: Cannot be used with $hostOffset-offset deps" >2;
99+ return 1 ;;
1010+esac
1111+112linkCxxAbi="@linkCxxAbi@"
22-export NIX_CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
33-export NIX_CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"
1313+export NIX_${role}CXXSTDLIB_COMPILE+=" -isystem @out@/include/c++/v1"
1414+export NIX_${role}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"