mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
[upstream_utils] Add std::is_debugger_present() shim (#7423)
This commit is contained in:
@@ -55,9 +55,10 @@ def copy_to(files, root, rename_c_to_cpp=False):
|
||||
for f in files:
|
||||
dest_file = os.path.join(root, f)
|
||||
|
||||
# Rename .cc file to .cpp
|
||||
if dest_file.endswith(".cc"):
|
||||
# Rename .cc or .cxx file to .cpp
|
||||
if dest_file.endswith(".cc") or dest_file.endswith(".cxx"):
|
||||
dest_file = os.path.splitext(dest_file)[0] + ".cpp"
|
||||
|
||||
if rename_c_to_cpp and dest_file.endswith(".c"):
|
||||
dest_file = os.path.splitext(dest_file)[0] + ".cpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user