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

Extend -o to work when compiling C files #9960

Merged
merged 1 commit into from
Jan 6, 2021
Merged

Commits on Jan 5, 2021

  1. Extend -o to work when compiling C files

    When using ocamlc/ocamlopt to compile C files, it was not possible
    so far to control where the resulting object file should be written.
    
    In other words, before this commit a command like
    
    ocamlopt -c foo.c -o /tmp/foo.o
    
    produced the following error message:
    
    Options -c and -o are incompatible when compiling C files
    
    This commit removes this restriction and lets the compiler accept
    that the command-line options -c and -o are given simultaneously
    also when compiling one C file, so that the previous command now works.
    
    The -o command-line option remains forbidden when compiling several source
    files.
    shindere committed Jan 5, 2021
    Configuration menu
    Copy the full SHA
    7af698e View commit details
    Browse the repository at this point in the history