| 1 |
/* Solaris support needed only by Rust front-end. |
| 2 |
Copyright (C) 2022-2025 Free Software Foundation, Inc. |
| 3 |
|
| 4 |
GCC is free software; you can redistribute it and/or modify it under |
| 5 |
the terms of the GNU General Public License as published by the Free |
| 6 |
Software Foundation; either version 3, or (at your option) any later |
| 7 |
version. |
| 8 |
|
| 9 |
GCC is distributed in the hope that it will be useful, but WITHOUT ANY |
| 10 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 11 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 12 |
for more details. |
| 13 |
|
| 14 |
You should have received a copy of the GNU General Public License |
| 15 |
along with GCC; see the file COPYING3. If not see |
| 16 |
<http://www.gnu.org/licenses/>. */ |
| 17 |
|
| 18 |
#include "config.h" |
| 19 |
#include "system.h" |
| 20 |
#include "coretypes.h" |
| 21 |
#include "tm.h" |
| 22 |
#include "tm_rust.h" |
| 23 |
#include "rust/rust-target.h" |
| 24 |
#include "rust/rust-target-def.h" |
| 25 |
|
| 26 |
/* Implement TARGET_RUST_OS_INFO for Solaris targets. */ |
| 27 |
|
| 28 |
static void |
| 29 |
solaris_rust_target_os_info (void) |
| 30 |
{ |
| 31 |
rust_add_target_info ("target_family", "unix"); |
| 32 |
rust_add_target_info ("target_os", "solaris"); |
| 33 |
rust_add_target_info ("target_vendor", "sun"); |
| 34 |
rust_add_target_info ("target_env", ""); |
| 35 |
} |
| 36 |
|
| 37 |
#undef TARGET_RUST_OS_INFO |
| 38 |
#define TARGET_RUST_OS_INFO solaris_rust_target_os_info |
| 39 |
|
| 40 |
struct gcc_targetrustm targetrustm = TARGETRUSTM_INITIALIZER; |