Skip to content

Commit c4daece

Browse files
committed
Revert changes not needed for test passage on supported platforms.
This reverts: - Adopt proper freebsd triple as required by Swift's build system. - Revert "Add FreeBSD target_* support. These will be re-introduced in a later patch that brings up the FreeBSD test suite.
1 parent 395ae26 commit c4daece

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
398398
set(SWIFT_PRIMARY_VARIANT_SDK_default "LINUX")
399399
set(SWIFT_PRIMARY_VARIANT_ARCH_default "x86_64")
400400
elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
401-
configure_sdk_unix(FREEBSD "FreeBSD" "freebsd" "freebsd" "x86_64" "x86_64-unknown-freebsd10")
401+
configure_sdk_unix(FREEBSD "FreeBSD" "freebsd" "freebsd" "x86_64" "x86_64-freebsd10")
402402

403403
set(CMAKE_EXECUTABLE_FORMAT "ELF")
404404

test/lit.cfg

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -611,20 +611,13 @@ if run_vendor == 'apple':
611611
"%s ld -L%s" %
612612
(xcrun_prefix, os.path.join(test_resource_dir, config.target_sdk_name)))
613613

614-
elif run_os == 'linux-gnu' or run_os.startswith('freebsd'):
615-
# Linux/FreeBSD
616-
if run_os == 'linux-gnu':
617-
config.target_sdk_name = "linux"
618-
elif run_os.startswith('freebsd'):
619-
config.target_sdk_name = "freebsd"
620-
621-
lit_config.note("Testing " + config.target_sdk_name + " " +
622-
config.variant_triple)
623-
614+
elif run_os == 'linux-gnu':
615+
# Linux
616+
lit_config.note("Testing Linux " + config.variant_triple)
624617
config.target_object_format = "elf"
625618
config.target_runtime = "native"
626619
config.target_swift_autolink_extract = inferSwiftBinary("swift-autolink-extract")
627-
620+
config.target_sdk_name = "linux"
628621
config.target_build_swift = (
629622
'%s -target %s %s %s %s %s'
630623
% (config.swiftc, config.variant_triple, resource_dir_opt, mcp_opt,

0 commit comments

Comments
 (0)