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

tao_idl Will Create a Directory Each Time a -o* Option is Passed #2202

Open
iguessthislldo opened this issue Feb 24, 2024 · 0 comments
Open

Comments

@iguessthislldo
Copy link
Member

As stated in the title, tao_idl will immediately create the directory specified by an -o option and its alternative forms:

case 'o':
if (av[i][2] == '\0')
{
idl_global->append_idl_flag (av[i + 1]);
int result = ACE_OS::mkdir (av[i + 1]);

This means it can do this:

$ tao_idl -o x -o y -o z
IDL: No input files
$ ls
x  y  z

Now obviously you really shouldn't be passing multiple -o options to tao_idl, but at the same time tao_idl shouldn't be doing this. It should just take the last one and use that, ideally only making the directory right before it writes the files there. I might try to fix this at some point, but I'm filing this issue mostly just to document it.

iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this issue Feb 26, 2024
The `_opendds_*_generated_output functions` in CMake didn't have any
sort of testing and could give incorrect results for where to put the
export header file. This tries to correct both of those issues.

Also added workaround for DOCGroup/ACE_TAO#2202
iguessthislldo added a commit to iguessthislldo/OpenDDS that referenced this issue Feb 26, 2024
The `_opendds_*_generated_output functions` in CMake didn't have any
sort of testing and could give incorrect results for where to put the
export header file. This tries to correct both of those issues.

Also added workaround for DOCGroup/ACE_TAO#2202
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant