aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/test_server
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2016-03-08 19:27:14 +0100
committerSverker Eriksson <[email protected]>2016-03-08 19:27:14 +0100
commit63e92d169851ff90d72181afd98c4d0adcbc7245 (patch)
tree7bc7fd451389fb9b95e44fb9478b752c76d120d7 /lib/common_test/test_server
parent25ea0fce81cd46a904b2aa95d982a9fd50a4a2c1 (diff)
downloadotp-63e92d169851ff90d72181afd98c4d0adcbc7245.tar.gz
otp-63e92d169851ff90d72181afd98c4d0adcbc7245.tar.bz2
otp-63e92d169851ff90d72181afd98c4d0adcbc7245.zip
erts: Produce debug info for windows tests
Nice with debug info for test drivers and nifs even when not running debug emulator. Flag -Zi will produce *.pdb files, and it seems to be needed both at compilation and at linking (before "-link").
Diffstat (limited to 'lib/common_test/test_server')
-rw-r--r--lib/common_test/test_server/ts_autoconf_win32.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/common_test/test_server/ts_autoconf_win32.erl b/lib/common_test/test_server/ts_autoconf_win32.erl
index 288305b406..26ab30f987 100644
--- a/lib/common_test/test_server/ts_autoconf_win32.erl
+++ b/lib/common_test/test_server/ts_autoconf_win32.erl
@@ -139,15 +139,15 @@ visual_cxx(Vars) ->
{"-MTd ",
"-MDd ",
"-LDd ",
- "-debug -pdb:none ",
+ "-link -debug -pdb:none ",
"-Z7 -DDEBUG",
" "};
false ->
{"-MT ",
"-MD ",
"-LD ",
- " ",
- " ",
+ "-Zi -link ",
+ "-Zi ",
"-Ox "}
end,
WIN32 = "-D__WIN32__ ",
@@ -158,7 +158,7 @@ visual_cxx(Vars) ->
{'LD', CC},
{'SHLIB_LD', CC},
{'SHLIB_LDFLAGS', ERTS_THR_LIB ++ DLL},
- {'SHLIB_LDLIBS', "-link " ++ DBG_LINK ++ "kernel32.lib"},
+ {'SHLIB_LDLIBS', DBG_LINK ++ "kernel32.lib"},
{'SHLIB_EXTRACT_ALL', ""},
{'CFLAGS', DEFAULT_THR_LIB ++ WIN32 ++ DBG_COMP},
{'EI_CFLAGS', DEFAULT_THR_LIB ++ WIN32 ++ DBG_COMP},
@@ -168,7 +168,7 @@ visual_cxx(Vars) ->
{'DEFS', common_c_defs()},
{'SHLIB_SUFFIX', ".dll"},
{'ERTS_LIBS', ERTS_THR_LIB ++ LIBS},
- {'LIBS', DEFAULT_THR_LIB ++ "-link " ++ DBG_LINK ++ LIBS},
+ {'LIBS', DEFAULT_THR_LIB ++ DBG_LINK ++ LIBS},
{obj,".obj"},
{exe, ".exe"},
{test_c_compiler, "{msc, undefined}"}