Skip to content

Commit 8587c9f

Browse files
authored
Add x86_mscoff and x86_omf to platform-specs (#30)
1 parent 17bf586 commit 8587c9f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

views/package_format_json.dt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,17 @@ block body
219219

220220
p Build settings influence the command line options passed to the compiler and linker. All settings are optional.
221221

222-
p Platform specific settings are supported through the use of field name suffixes. Suffixes are dash separated list of operating system/architecture/compiler identifiers, as defined in the <a href="http://dlang.org/version.html#PredefinedVersions">D language reference</a>, but converted to lower case. The order of these suffixes is <code>os-architecture-compiler</code>, where any of these parts can be left off. Examples:
222+
p Platform specific settings are supported through the use of field name suffixes. Suffixes are dash separated list of operating system/architecture/compiler identifiers, as defined in the <a href="http://dlang.org/version.html#PredefinedVersions">D language reference</a>, but converted to lower case. The order of these suffixes is <code>os-architecture-compiler</code>, where any of these parts can be left off. Additionally on Windows the architectures <code>x86_omf</code> and <code>x86_mscoff</code> can be used with dmd to differentiate between 32 bit object formats used with the <code>--arch</code> switch. Examples:
223223

224224
pre.code
225225
|{
226226
| "versions": ["PrintfDebugging"],
227227
| "dflags-dmd": ["-vtls"],
228228
| "versions-x86_64": ["UseAmd64Impl"]
229229
| "libs-posix": ["ssl", "crypto"],
230-
| "sourceFiles-windows-x86_64-dmd": ["lib/win32/mylib.lib"],
230+
| "sourceFiles-windows-x86_64-dmd": ["libs/windows-x86_64/mylib.lib"],
231+
| "sourceFiles-windows-x86_omf-dmd": ["libs/windows-x86_omf/mylib.lib"],
232+
| "sourceFiles-windows-x86_mscoff-dmd": ["libs/windows-x86_mscoff/mylib.lib"],
231233
|}
232234

233235
table

views/package_format_sdl.dt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ block body
346346

347347
h3#platform-specs Platform specifications
348348

349-
p Platform specific settings are supported through the use of the "platform" attribute. Platform attributes contain dash separated list of operating system/architecture/compiler identifiers, as defined in the <a href="http://dlang.org/version.html#PredefinedVersions">D language reference</a>, but converted to lower case. The order of these suffixes is <code>os-architecture-compiler</code>, where any of these parts can be left off. Examples:
349+
p Platform specific settings are supported through the use of the "platform" attribute. Platform attributes contain dash separated list of operating system/architecture/compiler identifiers, as defined in the <a href="http://dlang.org/version.html#PredefinedVersions">D language reference</a>, but converted to lower case. The order of these suffixes is <code>os-architecture-compiler</code>, where any of these parts can be left off. Additionally on Windows the architectures <code>x86_omf</code> and <code>x86_mscoff</code> can be used with dmd to differentiate between 32 bit object formats used with the <code>--arch</code> switch. Examples:
350350

351351
pre.code
352352
|// used on all platforms
@@ -358,7 +358,9 @@ block body
358358
|// only used on Posix systems (Linux, OS X, FreeBSD etc.)
359359
|libs "ssl" "crypto" platform="posix"
360360
|// applies if compiled for Windows, X86-64 using DMD
361-
|sourceFiles "lib/win32/mylib.lib" platform="windows-x86_64-dmd"
361+
|sourceFiles "lib/windows-x86_64/mylib.lib" platform="windows-x86_64-dmd"
362+
|sourceFiles "lib/windows-x86_omf/mylib.lib" platform="windows-x86_omf-dmd"
363+
|sourceFiles "lib/windows-x86_mscoff/mylib.lib" platform="windows-x86_mscoff-dmd"
362364

363365

364366
h3#version-specs Version specifications

0 commit comments

Comments
 (0)