mirror of
https://github.com/vlang/v.git
synced 2025-09-11 00:20:26 -04:00
native: leave only the unique paths in g.linker_include_paths, before doing lookups
This commit is contained in:
parent
921e00112a
commit
06132637f3
@ -622,6 +622,13 @@ fn (mut g Gen) gen_pe_idata() {
|
|||||||
|
|
||||||
g.linker_include_paths << '.'
|
g.linker_include_paths << '.'
|
||||||
|
|
||||||
|
// keep only the unique paths:
|
||||||
|
mut upaths := map[string]bool{}
|
||||||
|
for path in g.linker_include_paths {
|
||||||
|
upaths[path] = true
|
||||||
|
}
|
||||||
|
g.linker_include_paths = upaths.keys()
|
||||||
|
|
||||||
mut dll_files := ['kernel32.dll', 'user32.dll', 'msvcrt.dll']
|
mut dll_files := ['kernel32.dll', 'user32.dll', 'msvcrt.dll']
|
||||||
dll_files << g.linker_libs.map(it + '.dll')
|
dll_files << g.linker_libs.map(it + '.dll')
|
||||||
mut dlls := dll_files
|
mut dlls := dll_files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user