Fix configuration checks performed with ldc2 compiler - close #172

This commit is contained in:
josh committed 2024-02-04 20:25:01 -05:00
1 parent f8c21a9bcc
commit 415fa424d1
5 files changed
+74 -16

No files matched your search

+14 -1
View File
@@ -2047,10 +2047,11 @@ EOF
test_dir "configure"
create_exe "gdc", "exit 1"
create_exe "ldc2", "exit 1"
create_exe "ldc", "exit 1"
result = run_rscons(args: %W[-f #{rsconscript} configure])
expect(result.stderr).to match %r{Configuration failed; log file written to build/_configure/config.log}
expect(result.status).to_not eq 0
expect(result.stdout).to match /Checking for D compiler\.\.\. not found \(checked gdc, ldc2\)/
expect(result.stdout).to match /Checking for D compiler\.\.\. not found \(checked gdc, ldc2, ldc\)/
end
end
end
@@ -2287,6 +2288,18 @@ EOF
expect(result.stdout).to_not match /-lm/
end
it "finds the requested library with only ldc compiler" do
test_dir "configure"
create_exe "gcc", "exit 1"
create_exe "clang", "exit 1"
create_exe "gcc++", "exit 1"
create_exe "clang++", "exit 1"
result = run_rscons(args: %w[-f check_lib_with_ldc.rb])
expect(result.stderr).to eq ""
expect(result.status).to eq 0
expect(result.stdout).to match /Checking for library 'z'... found/
end
it "modifies LIBPATH based on check_libpath" do
test_dir "configure"
FileUtils.mkdir_p("usr1")