/usr/include/d/std/compiler.d is in libphobos2-ldc-dev 1:0.17.1-1ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | // Written in the D programming language.
/**
* Identify the compiler used and its various features.
*
* Macros:
* WIKI = Phobos/StdCompiler
*
* Copyright: Copyright Digital Mars 2000 - 2011.
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: $(WEB digitalmars.com, Walter Bright), Alex Rønne Petersen
* Source: $(PHOBOSSRC std/_compiler.d)
*/
/* Copyright Digital Mars 2000 - 2011.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module std.compiler;
immutable
{
/// Vendor specific string naming the compiler, for example: "Digital Mars D".
string name = __VENDOR__;
/// Master list of D compiler vendors.
enum Vendor
{
unknown = 0, /// Compiler vendor could not be detected
digitalMars = 1, /// Digital Mars D (DMD)
gnu = 2, /// GNU D Compiler (GDC)
llvm = 3, /// LLVM D Compiler (LDC)
dotNET = 4, /// D.NET
sdc = 5, /// Stupid D Compiler (SDC)
}
/// Which vendor produced this compiler.
version(StdDdoc) Vendor vendor;
else version(DigitalMars) Vendor vendor = Vendor.digitalMars;
else version(GNU) Vendor vendor = Vendor.gnu;
else version(LDC) Vendor vendor = Vendor.llvm;
else version(D_NET) Vendor vendor = Vendor.dotNET;
else version(SDC) Vendor vendor = Vendor.sdc;
else Vendor vendor = Vendor.unknown;
/**
* The vendor specific version number, as in
* version_major.version_minor
*/
uint version_major = __VERSION__ / 1000;
uint version_minor = __VERSION__ % 1000; /// ditto
/**
* The version of the D Programming Language Specification
* supported by the compiler.
*/
uint D_major = 2;
uint D_minor = 0;
}
|