Skip to content

Commit 617d7ef

Browse files
committed
[rebase]: fix PATH
1 parent b7fd6d2 commit 617d7ef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

configure

+1
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,7 @@ do
11351135
CFG_MSVC_LIB_PATH=$(cmd /c "\"$vcvarsall\" amd64 && cmd /c echo %LIB%")
11361136
need_ok "failed to learn about MSVC's LIB"
11371137

1138+
putvar CFG_MSVC_ROOT
11381139
putvar CFG_MSVC_CL
11391140
putvar CFG_MSVC_LIB
11401141
putvar CFG_MSVC_LINK

mk/cfg/x86_64-pc-windows-msvc.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ endif
3737
# but it's not the one that we want. As a result we make sure that our detected
3838
# `link.exe` shows up in PATH first.
3939
ifdef CFG_MSVC_LINK
40-
export PATH := $(dir $(CFG_MSVC_LINK)):$(PATH)
40+
export PATH := $(CFG_MSVC_ROOT)/VC/bin/amd64:$(PATH)
4141
endif
4242

4343
# There are more comments about this available in the target specification for

0 commit comments

Comments
 (0)