|
248 | 248 | "windows": {
|
249 | 249 | "<others>": {
|
250 | 250 | "cflags": ["-g", "-O3", "-Wall"],
|
| 251 | + "multitarget": { |
| 252 | + "libc": ["default"], |
| 253 | + }, |
251 | 254 | },
|
252 | 255 | },
|
253 | 256 | "linux-musl": {
|
254 | 257 | "<others>": {
|
255 | 258 | "cflags": ["-Wall", "-Werror", "-Wno-error=cpp"],
|
256 |
| - "toolchain": "sulong:SULONG_BOOTSTRAP_TOOLCHAIN", |
| 259 | + "multitarget": { |
| 260 | + "libc": ["musl", "default"], |
| 261 | + "compiler": ["sulong-bitcode", "host", "*"] |
| 262 | + }, |
257 | 263 | },
|
258 | 264 | },
|
259 | 265 | "<others>": {
|
260 | 266 | "<others>": {
|
261 | 267 | "cflags": ["-Wall", "-Werror"],
|
262 |
| - "toolchain": "sulong:SULONG_BOOTSTRAP_TOOLCHAIN", |
| 268 | + "multitarget": { |
| 269 | + "libc": ["glibc", "musl", "default"], |
| 270 | + "compiler": ["sulong-bitcode", "host", "*"] |
| 271 | + }, |
263 | 272 | },
|
264 | 273 | },
|
265 | 274 | },
|
|
312 | 321 | "-Wl,-current_version,1.0.0",
|
313 | 322 | "-Wl,-compatibility_version,1.0.0"
|
314 | 323 | ],
|
315 |
| - "toolchain": "sulong:SULONG_BOOTSTRAP_TOOLCHAIN", |
| 324 | + "multitarget": { |
| 325 | + "compiler": ["sulong-bitcode", "host", "*"] |
| 326 | + }, |
316 | 327 | },
|
317 | 328 | },
|
318 | 329 | "linux": {
|
|
321 | 332 | "ldflags": [
|
322 | 333 | "-Wl,-soname,libjvm.so",
|
323 | 334 | "-Wl,--version-script,<path:espresso:com.oracle.truffle.espresso.mokapot>/mapfile-vers",
|
324 |
| - # newer LLVM versions default to --no-undefined-version |
325 |
| - "-Wl,--undefined-version", |
326 | 335 | ],
|
327 |
| - "toolchain": "sulong:SULONG_BOOTSTRAP_TOOLCHAIN", |
| 336 | + "multitarget": { |
| 337 | + "libc": ["glibc", "musl", "default"], |
| 338 | + "compiler": ["sulong-bitcode", "host", "*"] |
| 339 | + }, |
328 | 340 | },
|
329 | 341 | },
|
330 | 342 | "linux-musl": {
|
|
333 | 345 | "ldflags": [
|
334 | 346 | "-Wl,-soname,libjvm.so",
|
335 | 347 | "-Wl,--version-script,<path:espresso:com.oracle.truffle.espresso.mokapot>/mapfile-vers",
|
336 |
| - # newer LLVM versions default to --no-undefined-version |
337 |
| - "-Wl,--undefined-version", |
338 | 348 | ],
|
339 |
| - "toolchain": "sulong:SULONG_BOOTSTRAP_TOOLCHAIN", |
| 349 | + "multitarget": { |
| 350 | + "libc": ["musl", "default"], |
| 351 | + "compiler": ["sulong-bitcode", "host", "*"] |
| 352 | + }, |
340 | 353 | },
|
341 | 354 | },
|
342 | 355 | "windows": {
|
343 | 356 | "<others>": {
|
344 | 357 | "cflags": ["-g", "-O3", "-Wall"],
|
| 358 | + "multitarget": { |
| 359 | + "libc": ["default"], |
| 360 | + }, |
345 | 361 | },
|
346 | 362 | }
|
347 | 363 | },
|
|
562 | 578 | "dependency:espresso:ESPRESSO_STANDALONE_COMMON/*",
|
563 | 579 | ],
|
564 | 580 | "<jdk_lib_dir>/truffle/": [
|
565 |
| - "dependency:espresso:com.oracle.truffle.espresso.mokapot/<lib:jvm>", |
| 581 | + "dependency:espresso:com.oracle.truffle.espresso.mokapot/*/<multitarget_libc_selection>/<lib:jvm>", |
566 | 582 | ],
|
567 | 583 | "lib/jvm.cfg": {
|
568 | 584 | "source_type": "string",
|
|
625 | 641 | ],
|
626 | 642 | "languages/java/lib/": [
|
627 | 643 | # Copy of libjvm.so, accessible by Sulong via the default Truffle file system.
|
628 |
| - "dependency:espresso:com.oracle.truffle.espresso.mokapot/<lib:jvm>", |
| 644 | + "dependency:espresso:com.oracle.truffle.espresso.mokapot/*/<multitarget_libc_selection>/<lib:jvm>", |
629 | 645 | ],
|
630 | 646 | "languages/java/": [
|
631 | 647 | {
|
|
710 | 726 | "layout": {
|
711 | 727 | "META-INF/resources/java/espresso-libs/<os>/<arch>/lib/": [
|
712 | 728 | # Copy of libjvm.so, accessible by Sulong via the default Truffle file system.
|
713 |
| - "dependency:espresso:com.oracle.truffle.espresso.mokapot/<lib:jvm>", |
| 729 | + "dependency:espresso:com.oracle.truffle.espresso.mokapot/*/<multitarget_libc_selection>/<lib:jvm>", |
714 | 730 | ],
|
715 | 731 | "META-INF/resources/java/espresso-libs/<os>/<arch>/": "dependency:espresso:ESPRESSO_SUPPORT/*",
|
716 | 732 | },
|
|
755 | 771 | "platforms": "local",
|
756 | 772 | "layout": {
|
757 | 773 | "lib/": [
|
758 |
| - "dependency:espresso:com.oracle.truffle.espresso.native/<lib:nespresso>", |
| 774 | + "dependency:espresso:com.oracle.truffle.espresso.native/*/<multitarget_libc_selection>/<lib:nespresso>", |
759 | 775 | "dependency:espresso:ESPRESSO_POLYGLOT/*",
|
760 | 776 | "dependency:espresso:HOTSWAP/*",
|
761 | 777 | "dependency:espresso:CONTINUATIONS/*",
|
|
782 | 798 | "./": "dependency:espresso:ESPRESSO_SUPPORT/*",
|
783 | 799 | "lib/": [
|
784 | 800 | # Copy of libjvm.so, accessible by Sulong via the default Truffle file system.
|
785 |
| - "dependency:espresso:com.oracle.truffle.espresso.mokapot/<lib:jvm>", |
| 801 | + "dependency:espresso:com.oracle.truffle.espresso.mokapot/*/<multitarget_libc_selection>/<lib:jvm>", |
786 | 802 | ]
|
787 | 803 | },
|
788 | 804 | "maven": False,
|
|
794 | 810 | "platformDependent": True,
|
795 | 811 | "layout": {
|
796 | 812 | "truffle/": [
|
797 |
| - "dependency:espresso:com.oracle.truffle.espresso.mokapot/<lib:jvm>", |
| 813 | + "dependency:espresso:com.oracle.truffle.espresso.mokapot/*/<multitarget_libc_selection>/<lib:jvm>", |
798 | 814 | ],
|
799 | 815 | },
|
800 | 816 | "maven": False,
|
|
0 commit comments