dub.compilers.utils

Utility functionality for compiler class implementations.

Members

Functions

enforceBuildRequirements
void enforceBuildRequirements(ref BuildSettings settings)

Alters the build options to comply with the specified build requirements.

generatePlatformProbeFile
NativePath generatePlatformProbeFile()

Generate a file that will give, at compile time, information about the compiler (architecture, frontend version...)

isLinkerFile
bool isLinkerFile(string f)

Determines if a specific file name has the extension of a linker file.

readPlatformProbe
BuildPlatform readPlatformProbe(string output)

Processes the output generated by compiling the platform probe file.

resolveLibs
void resolveLibs(ref BuildSettings settings)

Replaces each referenced import library by the appropriate linker flags.

warnOnSpecialCompilerFlags
void warnOnSpecialCompilerFlags(string[] compiler_flags, BuildOptions options, string package_name, string config_name)

Searches the given list of compiler flags for ones that have a generic equivalent.

Meta

Authors

Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.