This improves compatibility with clang, and is used by some projects.
PR target/117478
gcc/ChangeLog:
* config/darwin-driver.cc (darwin_driver_init): Handle ObjC/ObjC++
* config/darwin.opt: Add ObjC/ObjC++ as driver-only options.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
noexport_p = false;
break;
+ case OPT_ObjC:
+ (*decoded_options)[i].opt_index = OPT_x;
+ (*decoded_options)[i].arg = "objective-c";
+ break;
+
+ case OPT_ObjC__:
+ (*decoded_options)[i].opt_index = OPT_x;
+ (*decoded_options)[i].arg = "objective-c++";
+ break;
+
default:
break;
}
Driver RejectNegative Negative(seglinkedit)
(Obsolete) This is the default.
+ObjC
+Driver RejectNegative
+
+ObjC++
+Driver RejectNegative
+
object
Driver RejectNegative