[ruby-core:76728] [Ruby trunk Bug#12644] Support debug build on Windows with MSVC
From:
usa@...
Date:
2016-08-04 08:04:57 UTC
List:
ruby-core #76728
Issue #12644 has been updated by Usaku NAKAMURA. Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED ---------------------------------------- Bug #12644: Support debug build on Windows with MSVC https://bugs.ruby-lang.org/issues/12644#change-59951 * Author: Dト」is Mosト]s * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.4.0dev (2016-08-01 trunk 55789) [x64-mingw32] * Backport: 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED ---------------------------------------- When building debug build with MSVC (`-MDd` flag) then it will be linked to `ucrtbased.dll` where `_isatty` function obviously differs. I've attached a patch which fixes this so that `__pioinfo` will be found for both debug and non-debug builds (x86 and x64) Anyway I really really don't like this and I think Ruby should keep it's own fd <=> handle mapping and not use this hack, but for now this works until `_isatty` changes. ---Files-------------------------------- 0001-Support-debug-build-on-Windows-with-MSVC.patch (4.04 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>