Skip to content

Commit

Permalink
MSVC: pass /LARGEADDRESSAWARE:NO to MS linker.
Browse files Browse the repository at this point in the history
A work-around for LDC issue #442 regarding debug infos.
  • Loading branch information
kinke committed Jul 19, 2015
1 parent 5c22216 commit c3ff7ae
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ldc2.conf.in
Expand Up @@ -11,6 +11,6 @@ default:
"-I@RUNTIME_DIR@/src", // Needed for gc.*/rt.* unit tests.
@LIB_PATH@@MULTILIB_ADDITIONAL_PATH@@SHARED_LIBS_RPATH@
"-defaultlib=druntime-ldc",
"-debuglib=druntime-ldc-debug"
"-debuglib=druntime-ldc-debug"@ADDITIONAL_DEFAULT_LDC_SWITCHES@
];
};
2 changes: 1 addition & 1 deletion ldc2_install.conf.in
Expand Up @@ -11,6 +11,6 @@ default:
"-I@INCLUDE_INSTALL_DIR@",
"-L-L@CMAKE_INSTALL_LIBDIR@", @MULTILIB_ADDITIONAL_INSTALL_PATH@
"-defaultlib=phobos2-ldc,curl,druntime-ldc",
"-debuglib=phobos2-ldc-debug,curl,druntime-ldc-debug"
"-debuglib=phobos2-ldc-debug,curl,druntime-ldc-debug"@ADDITIONAL_DEFAULT_LDC_SWITCHES@
];
};
2 changes: 1 addition & 1 deletion ldc2_phobos.conf.in
Expand Up @@ -12,6 +12,6 @@ default:
"-I@PHOBOS2_DIR@/",
@LIB_PATH@@MULTILIB_ADDITIONAL_PATH@@SHARED_LIBS_RPATH@
"-defaultlib=phobos2-ldc,curl,druntime-ldc",
"-debuglib=phobos2-ldc-debug,curl,druntime-ldc-debug"
"-debuglib=phobos2-ldc-debug,curl,druntime-ldc-debug"@ADDITIONAL_DEFAULT_LDC_SWITCHES@
];
};
1 change: 1 addition & 0 deletions runtime/CMakeLists.txt
Expand Up @@ -196,6 +196,7 @@ endif()
#
if(MSVC)
set(LIB_PATH "\"-L-L${CMAKE_BINARY_DIR}/lib${LIB_SUFFIX}/${CMAKE_BUILD_TYPE}\",")
set(ADDITIONAL_DEFAULT_LDC_SWITCHES ",\n \"-L/LARGEADDRESSAWARE:NO\"")
else()
set(LIB_PATH "\"-L-L${CMAKE_BINARY_DIR}/lib${LIB_SUFFIX}\",")
endif()
Expand Down

0 comments on commit c3ff7ae

Please sign in to comment.