Skip to content

Commit e9d243f

Browse files
authored
Merge pull request #2463 from TurkeyMan/linker_directive
Add pragma(linkerdirective, "") to spec. merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2 parents f7bb05f + c1fc9df commit e9d243f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/pragma.dd

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ $(P All implementations must support these, even if by just ignoring them:)
6262
$(UL
6363
$(LI $(LINK2 #inline, pragma inline))
6464
$(LI $(LINK2 #lib, pragma lib))
65+
$(LI $(LINK2 #linkerDirective, pragma linkerDirective))
6566
$(LI $(LINK2 #mangle, pragma mangle))
6667
$(LI $(LINK2 #msg, pragma msg))
6768
$(LI $(LINK2 #startaddress, pragma startaddress))
@@ -137,6 +138,20 @@ pragma(lib, "foo.lib");
137138
so the linker automatically links in that library.
138139
)
139140

141+
$(H3 $(LNAME2 linkerDirective, $(D pragma linkerDirective)))
142+
143+
$(P There must be one $(ASSIGNEXPRESSION) and it must evaluate at compile time to a string literal.
144+
)
145+
-----------------
146+
pragma(linkerDirective, "/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=2");
147+
-----------------
148+
149+
$(IMPLEMENTATION_DEFINED
150+
$(P The string literal specifies a linker directive to be embedded in the generated object file.)
151+
152+
$(P Linker directives are only supported for MS-COFF output.)
153+
)
154+
140155
$(H3 $(LNAME2 mangle, $(D pragma mangle)))
141156

142157
$(P Overrides the default mangling for a symbol.)

0 commit comments

Comments
 (0)