This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2063 from rainers/issue15482
fix issue 15482 - new uuid.d forbids to link statically with other libs
- Loading branch information
Showing
4 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// test for duplicate symbols in druntime and uuid.lib | ||
module test; | ||
|
||
version(CRuntime_Microsoft) {} else static assert(false, "Windows/COFF only"); | ||
|
||
import core.sys.windows.basetyps; | ||
import core.sys.windows.uuid; | ||
|
||
extern extern(C) IID IID_IDelayedPropertyStoreFactory; // from uuid.lib | ||
|
||
void main() | ||
{ | ||
assert(IID_IDirect3DNullDevice != IID_IDelayedPropertyStoreFactory); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# built from the druntime top-level folder | ||
# to be overwritten by caller | ||
DMD=dmd | ||
MODEL=64 | ||
DRUNTIMELIB=druntime64.lib | ||
|
||
test: | ||
$(DMD) -m$(MODEL) -conf= -Isrc -defaultlib=$(DRUNTIMELIB) test\uuid\test.d uuid.lib | ||
del test.exe test.obj | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters