From fdef04e535893f7b6fcf46fe71a4b3b829171f4e Mon Sep 17 00:00:00 2001 From: Richard Tucker Date: Fri, 30 May 1997 14:57:35 +0100 Subject: [PATCH] Add solaris Copied from Perforce Change: 18307 ServerID: perforce.ravenbrook.com --- mps/qa/test/script/compile | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/mps/qa/test/script/compile b/mps/qa/test/script/compile index 98b3900c99d..7462db8a9fe 100644 --- a/mps/qa/test/script/compile +++ b/mps/qa/test/script/compile @@ -14,27 +14,33 @@ $plat_link{"sol2.4_sparc"} = "-lm"; sub compiler_settings { - if ($platform_class =~ "^nt_") { + if ($PLATFORM =~ "^nt_") { $cc_command = "cl"; $cc_opts = "/DWIN32 /D_WINDOWS /W3 /Z7 /DMMQA_VERS_$INTERFACE_VERSION"; - $cc_link = "$obj_dir/platform.o $plat_link{$PLATFORM}"; + $cc_link = "$obj_dir/platform.o"; $cc_include = "/I$testlib_dir /I$MPS_INCLUDE_DIR"; $cc_conly = "/c"; $cc_obj = "/Fo"; $cc_exe = "/Fe"; $run_command = ""; - } else { + } elsif ($PLATFORM =~ "^(sun|sol)") { + if ($PLATFORM =~ "^sol") { + $cc_link = "$obj_dir/platform.o -lm"; + } else { + $cc_link = "$obj_dir/platform.o"; + } $cc_command = "gcc"; $cc_opts = "-ansi -pedantic -Wall -Wstrict-prototypes ". "-Winline -Waggregate-return -Wnested-externs -Wcast-qual ". "-Wshadow -Wmissing-prototypes -Wredundant-decls -Wcast-align ". "-O -g -ggdb3 -DMMQA_VERS_$INTERFACE_VERSION"; - $cc_link = "$obj_dir/platform.o $plat_link{$PLATFORM}"; $cc_include = "-I$testlib_dir -I$MPS_INCLUDE_DIR"; $cc_conly = "-c"; $cc_obj = "-o "; $cc_exe = "-o "; $run_command = "sh -c "; + } else { + die "Sorry: I don't know how to compile on ".$PLATFORM."\n"; } }