Skip to content

Commit de5bdaf

Browse files
authored
Merge pull request #2387 from jwillemsen/jwi-depcpplocation
Support for deprecated CPP_LOCATION environment variable has been removed
2 parents 4b43a7d + 3c14174 commit de5bdaf

3 files changed

Lines changed: 3 additions & 43 deletions

File tree

TAO/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ USER VISIBLE CHANGES BETWEEN TAO-4.0.3 and TAO-4.0.4
77
builtin backend doesn't enforce the bound
88
. Support for using maps in unions, sequences, and arrays
99
. Fix memory leaks caused by maps
10+
. Removed support for deprecated CPP_LOCATION and TAO_IDL_DEFAULT_CPP_FLAGS
11+
environment variables
1012

1113
USER VISIBLE CHANGES BETWEEN TAO-4.0.2 and TAO-4.0.3
1214
====================================================

TAO/TAO_IDL/fe/fe_init.cpp

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -502,24 +502,7 @@ FE_get_cpp_loc_from_env ()
502502
}
503503
else
504504
{
505-
// Check for the deprecated CPP_LOCATION environment variable
506-
ACE_Env_Value<char*> cpp_path (ACE_TEXT ("CPP_LOCATION"),
507-
(char *) nullptr);
508-
509-
if (cpp_path != 0)
510-
{
511-
ACE_ERROR ((LM_WARNING,
512-
"WARNING: The environment variable "
513-
"CPP_LOCATION has been deprecated.\n"
514-
" Please use TAO_IDL_PREPROCESSOR "
515-
"instead.\n"));
516-
517-
cpp_loc = cpp_path;
518-
}
519-
else
520-
{
521-
cpp_loc = idl_global->cpp_location ();
522-
}
505+
cpp_loc = idl_global->cpp_location ();
523506
}
524507

525508
return cpp_loc;
@@ -538,25 +521,6 @@ FE_get_cpp_args_from_env ()
538521
{
539522
cpp_args = args1;
540523
}
541-
else
542-
{
543-
// Check for the deprecated TAO_IDL_DEFAULT_CPP_FLAGS environment
544-
// variable.
545-
ACE_Env_Value<char*> args2 (ACE_TEXT ("TAO_IDL_DEFAULT_CPP_FLAGS"),
546-
(char *) nullptr);
547-
548-
if (args2 != 0)
549-
{
550-
ACE_ERROR ((LM_WARNING,
551-
"Warning: The environment variable "
552-
"TAO_IDL_DEFAULT_CPP_FLAGS has been "
553-
"deprecated.\n"
554-
" Please use "
555-
"TAO_IDL_PREPROCESSOR_ARGS instead.\n"));
556-
557-
cpp_args = args2;
558-
}
559-
}
560524

561525
return cpp_args;
562526
}

TAO/docs/compiler.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,12 +157,6 @@ <h3>Generated Files</h3>
157157
by setting the environment variables TAO_IDL_PREPROCESSOR and
158158
TAO_IDL_PREPROCESSOR_ARGS.</P>
159159

160-
<P>In previous versions, the environment variables CPP_LOCATION and
161-
TAO_IDL_DEFAULT_CPP_FLAGS were used for this purpose. Both will still work,
162-
but TAO_IDL will display a deprecation warning if it detects one of these.
163-
It is possible that support for these old variables will be removed in a
164-
future version of TAO.</P>
165-
166160
<P>If ACE_ROOT or TAO_ROOT are defined, then TAO_IDL
167161
will use them to include the $(ACE_ROOT)/TAO/tao or $(TAO_ROOT)/tao
168162
directories. This is to allow TAO_IDL to automatically find

0 commit comments

Comments
 (0)