[ec24a37] | 1 | /* |
---|
[7461924] | 2 | * Copyright (c) 2011-2012, Chris Johns <chrisj@rtems.org> |
---|
[ec24a37] | 3 | * |
---|
| 4 | * Permission to use, copy, modify, and/or distribute this software for any |
---|
| 5 | * purpose with or without fee is hereby granted, provided that the above |
---|
| 6 | * copyright notice and this permission notice appear in all copies. |
---|
[7461924] | 7 | * |
---|
[ec24a37] | 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
---|
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
---|
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
---|
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
---|
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
---|
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
---|
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
---|
| 15 | */ |
---|
| 16 | /** |
---|
| 17 | * @file |
---|
| 18 | * |
---|
| 19 | * @ingroup rtems-ld |
---|
| 20 | * |
---|
[7461924] | 21 | * @brief Various calls to CC. |
---|
[ec24a37] | 22 | * |
---|
| 23 | */ |
---|
| 24 | |
---|
[7461924] | 25 | #if !defined (_RLD_CC_H_) |
---|
| 26 | #define _RLD_CC_H_ |
---|
[ec24a37] | 27 | |
---|
| 28 | #include <string> |
---|
| 29 | |
---|
| 30 | #include <rld-files.h> |
---|
| 31 | |
---|
| 32 | namespace rld |
---|
| 33 | { |
---|
[7461924] | 34 | namespace cc |
---|
[ec24a37] | 35 | { |
---|
[7461924] | 36 | extern std::string cc; //< The CC executable. |
---|
| 37 | extern std::string exec_prefix; //< The CC executable prefix. |
---|
| 38 | extern std::string march; //< The CC machine architecture. |
---|
| 39 | extern std::string mcpu; //< The CC machine CPU. |
---|
| 40 | |
---|
| 41 | extern std::string install_path; //< The CC reported install path. |
---|
| 42 | extern std::string programs_path; //< The CC reported programs path. |
---|
| 43 | extern std::string libraries_path; //< The CC reported libraries path. |
---|
| 44 | |
---|
[ec24a37] | 45 | /** |
---|
| 46 | * Get the standard libraries paths from the compiler. |
---|
| 47 | */ |
---|
| 48 | void get_standard_libpaths (rld::files::paths& libpaths); |
---|
[7461924] | 49 | |
---|
[ec24a37] | 50 | /** |
---|
| 51 | * Get the standard libraries. Optionally add the C++ library. |
---|
| 52 | */ |
---|
[7461924] | 53 | void get_standard_libs (rld::files::paths& libs, |
---|
[ec24a37] | 54 | rld::files::paths& libpaths, |
---|
| 55 | bool cpp = false); |
---|
[7461924] | 56 | |
---|
[ec24a37] | 57 | } |
---|
| 58 | } |
---|
| 59 | |
---|
| 60 | #endif |
---|