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

ocamlc -o not respected for C files #5459

Closed
vicuna opened this issue Jan 2, 2012 · 1 comment
Closed

ocamlc -o not respected for C files #5459

vicuna opened this issue Jan 2, 2012 · 1 comment
Assignees

Comments

@vicuna
Copy link

vicuna commented Jan 2, 2012

Original bug ID: 5459
Reporter: @Chris00
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2013-08-31T10:44:23Z)
Resolution: suspended
Priority: normal
Severity: minor
Platform: x86_64
OS: Debian GNU/Linux
OS Version: 3.10.0
Version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @hcarty

Bug description

When compiling a C file with ocamlc, the -o flag can be set but is not used. It is occasionally useful however, for example when different objects files may be produced by defining some macros.

@vicuna
Copy link
Author

vicuna commented Jan 17, 2012

Comment author: @lefessan

It looks like there are still some C compilers that don't comply to the -o option. If we don't use the C compiler -o option, ocamlc has to rename the object file itself, but then, it might clash with parallel compilation.

For these reasons, this feature is "suspended" until all known C compilers implement the -o option correctly.

Note that it is still possible to use -o with C files using the -ccopt option, if you don't care too much about portability across C compilers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants