From 5a05e13d5c32ceb011b929c5ff43b538421f3e12 Mon Sep 17 00:00:00 2001 From: Jascha Date: Thu, 1 Dec 2016 11:10:18 +0100 Subject: [PATCH] Add ATL/MFC detection for MSVC --- src/windows_registry.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows_registry.rs b/src/windows_registry.rs index b2c719d..e16a33f 100644 --- a/src/windows_registry.rs +++ b/src/windows_registry.rs @@ -211,6 +211,11 @@ pub fn find_tool(target: &str, tool: &str) -> Option { let sub = otry!(vc_lib_subdir(target)); tool.libs.push(path.join("lib").join(sub)); tool.include.push(path.join("include")); + let atlmfc_path = path.join("atlmfc"); + if atlmfc_path.exists() { + tool.libs.push(atlmfc_path.join("lib").join(sub)); + tool.include.push(atlmfc_path.join("include")); + } Some(tool) }).next() }