rust/src/libsyntax
bors 78ce46ffdd Auto merge of #28612 - gandro:targetvendor, r=alexcrichton
This adds a new target property, `target_vendor`. It is to be be used as a matcher for conditional compilation. The vendor is part of the [autoconf target triple](http://llvm.org/docs/doxygen/html/classllvm_1_1Triple.html#details): `<arch><sub>-<vendor>-<os>-<env>`. `arch`, `target_os` and `target_env` are already supported by Rust.

This change was suggested in PR #28593. It enables conditional compilation based on the vendor. This is needed for the rumprun target, which needs to match against both, target_os and target_vendor.

The default value for `target_vendor` is "unknown", "apple" and "pc" are other common values.

Matching against the `target_vendor` is introduced behind the feature gate `#![feature(cfg_target_vendor)]`.

This is the first time I messed around with rustc internals. I just added the my code where I found the existing `target_*` variables, hopefully I haven't missed anything. Please review with care. :)

r? @alexcrichton
2015-09-26 00:14:39 +00:00
..
diagnostics Introduce a "origin/cause" for new requirements (or bugfixes...) introduced by RFC 1214, 2015-08-12 17:58:22 -04:00
ext Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
parse Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
print Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
util syntax: replace sess.span_diagnostic.cm with sess.codemap(). 2015-05-14 01:47:56 +03:00
abi.rs Create "platform-intrinsic" ABI for SIMD/platform intrinsics. 2015-08-17 14:41:38 -07:00
ast.rs Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
ast_util.rs Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
attr.rs feature gate cfg(target_feature). 2015-08-17 14:41:37 -07:00
codemap.rs Closures are not generated code. 2015-08-31 17:06:30 +12:00
config.rs Remove Visibility field from enum variants 2015-09-17 10:02:59 +03:00
diagnostic.rs Print the file in which a macro was defined 2015-09-14 16:09:57 +02:00
entry.rs Add an intital HIR and lowering step 2015-09-03 10:02:36 +12:00
feature_gate.rs Auto merge of #28612 - gandro:targetvendor, r=alexcrichton 2015-09-26 00:14:39 +00:00
fold.rs Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00
lib.rs Move entry point identification logic to libsyntax 2015-08-24 20:27:42 -04:00
owned_slice.rs Switched to Box::new in many places. 2015-03-03 21:05:55 +01:00
ptr.rs syntax: remove #![feature(box_syntax, box_patterns)] 2015-04-21 10:07:48 -07:00
show_span.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
std_inject.rs Move ExpnInfo to Name 2015-08-28 03:37:13 +05:30
str.rs syntax: Copy unstable str::char_at into libsyntax 2015-04-21 10:23:53 -07:00
test.rs Rollup merge of #28033 - Manishearth:compilerexpn, r=eddyb 2015-08-28 03:38:37 +05:30
visit.rs Remove the deprecated box(PLACE) syntax. 2015-09-24 18:00:08 +03:00