Skip to content

Commit d9c7fb3

Browse files
committed
FEAT: simplified extension test definition
1 parent 9892350 commit d9c7fb3

File tree

1 file changed

+26
-35
lines changed

1 file changed

+26
-35
lines changed

make/rebol3.nest

+26-35
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,30 @@ make-x64-dll: [:arch-x64 :make-dll ]
825825
make-x86-host: [:arch-x86 :make-host ]
826826
make-x64-host: [:arch-x64 :make-host ]
827827

828+
make-ext-test: [
829+
files: only %tests/extension/test.c
830+
flags: [-O2 shared]
831+
compiler: clang
832+
#if Windows? [
833+
defines: _CRT_SECURE_NO_WARNINGS
834+
]
835+
#if Linux? [
836+
flag: -fPIC
837+
compiler: gcc
838+
]
839+
#if MacOS? [
840+
:target-macos
841+
]
842+
#if OpenBSD? [
843+
flag: -fPIC
844+
:target-openbsd
845+
]
846+
#if FreeBSD? [
847+
flag: -fPIC
848+
:target-freebsd
849+
]
850+
]
851+
828852
eggs: [
829853
#if Windows? [
830854
; "Pre-make (minimum included)" [
@@ -1039,45 +1063,12 @@ eggs: [
10391063
]
10401064
"Test extension 32bit" [
10411065
name: %test-x86.rebx
1042-
files: only %tests/extension/test.c
10431066
:arch-x86
1044-
compiler: gcc
1045-
flags: [-O2 shared]
1046-
#if Linux? [
1047-
flag: -fPIC
1048-
compiler: gcc
1049-
]
1050-
#if MacOS? [
1051-
:target-macos
1052-
]
1053-
#if OpenBSD? [
1054-
flag: -fPIC
1055-
:target-openbsd
1056-
]
1057-
#if FreeBSD? [
1058-
flag: -fPIC
1059-
:target-freebsd
1060-
]
1067+
:make-ext-test
10611068
]
10621069
"Test extension 64bit" [
10631070
name: %test-x64.rebx
1064-
files: only %tests/extension/test.c
10651071
:arch-x64
1066-
flags: [-O2 shared]
1067-
#if Linux? [
1068-
flag: -fPIC
1069-
compiler: gcc
1070-
]
1071-
#if MacOS? [
1072-
:target-macos
1073-
]
1074-
#if OpenBSD? [
1075-
flag: -fPIC
1076-
:target-openbsd
1077-
]
1078-
#if FreeBSD? [
1079-
flag: -fPIC
1080-
:target-freebsd
1081-
]
1072+
:make-ext-test
10821073
]
10831074
]

0 commit comments

Comments
 (0)