aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/guess.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-01-08 11:07:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-01-08 11:07:17 +0200
commitf6c3788de3d148c90aba705d045b1d92e7fea20a (patch)
tree3e99d4a3d87ab4f6c68cbfd0060e28b465bee4de /build2/cc/guess.hxx
parentf1b3c0e86daec1f5b7ed81a60edbe548fcbb5f42 (diff)
Complete runtime/stdlib detection
Diffstat (limited to 'build2/cc/guess.hxx')
-rw-r--r--build2/cc/guess.hxx23
1 files changed, 16 insertions, 7 deletions
diff --git a/build2/cc/guess.hxx b/build2/cc/guess.hxx
index 9d87cb4..d6ca28d 100644
--- a/build2/cc/guess.hxx
+++ b/build2/cc/guess.hxx
@@ -167,15 +167,21 @@ namespace build2
// msvc
//
// The C standard library is normally the library/project name (e.g,
- // glibc, musl, newlib, klibc, etc) but if there is none, then we
- // fallback to the vendor name (e.g., freebsd). Proposed values are (any
- // BSD-derived libc should end with the *bsd suffix):
+ // glibc, klibc, newlib, etc) but if there is none, then we fallback to
+ // the vendor name (e.g., freebsd, apple). Current values are:
//
// glibc
// msvc (msvcrt.lib/msvcrNNN.dll)
// freebsd
- // applebsd
- // cygwin? (apparently newlib)
+ // apple
+ // newlib (also used by Cygwin)
+ // klibc
+ // bionic
+ // uclibc
+ // musl
+ // dietlibc
+ // other
+ // none
//
// The C++ standard library is normally the library/project name.
// Current values are:
@@ -183,6 +189,8 @@ namespace build2
// libstdc++
// libc++
// msvcp (msvcprt.lib/msvcpNNN.dll)
+ // other
+ // none
//
string runtime;
string c_stdlib;
@@ -197,8 +205,9 @@ namespace build2
compiler_info
guess (lang,
const path& xc,
- const strings* c_coptions,
- const strings* x_coptions);
+ const strings* c_poptions, const strings* x_poptions,
+ const strings* c_coptions, const strings* x_coptions,
+ const strings* c_loptions, const strings* x_loptions);
// Given a language, toolchain id, and optionally (empty) a pattern,
// return an appropriate default compiler path.