Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix configuration checks performed with ldc2 compiler #172

Closed
holtrop opened this issue Feb 4, 2024 · 0 comments
Closed

Fix configuration checks performed with ldc2 compiler #172

holtrop opened this issue Feb 4, 2024 · 0 comments
Assignees
Labels

Comments

@holtrop
Copy link
Owner

holtrop commented Feb 4, 2024

The following Rsconscript fails to configure:

configure do
  check_d_compiler "ldc2"
  check_lib "SDL2"
end

rscons produces this config.log:

$ cat build/_configure/config.log 
Command: ldc2 -c -o build/_configure/cfgtest.o build/_configure/cfgtest.d
Exit status: 256
ldc2: Unknown command line argument '-o'.  Try: 'ldc2 --help'
ldc2: Did you mean '-H'?
Command: ldc2 -c -of build/_configure/cfgtest.o build/_configure/cfgtest.d
Exit status: 0
Command: gcc -of build/_configure/cfgtest.exe build/_configure/cfgtest.c -lSDL2
Exit status: 256
/usr/bin/ld: cannot use executable file 'build/_configure/cfgtest.exe' as input to a link
collect2: error: ld returned 1 exit status

rscons passes the ldc2 -of argument to gcc when attempting the link. Investigate if rscons can use ldc2 to do the link for these configuration tests. A similar issue might exist for clang if gcc is not available.

@holtrop holtrop added the bug label Feb 4, 2024
@holtrop holtrop self-assigned this Feb 4, 2024
@holtrop holtrop closed this as completed in 415fa42 Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant