Skip to content

Commit

Permalink
SERVER-93633 remove idl support from scons (#26192)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 69a1b88e33b8dc16deb0085cb418d533766a8c1f
  • Loading branch information
dmoody256 authored and MongoDB Bot committed Aug 15, 2024
1 parent 2de4c69 commit 13d3ff1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 164 deletions.
28 changes: 0 additions & 28 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,6 @@ def variable_tools_converter(val):
return tool_list + [
"distsrc",
"gziptool",
"idl_tool",
"jsheader",
"mongo_test_execution",
"mongo_test_list",
Expand Down Expand Up @@ -2309,7 +2308,6 @@ env["BUILDERS"]["SharedArchive"] = SCons.Builder.Builder(

# Teach object builders how to build underlying generated types
for builder in ["SharedObject", "StaticObject"]:
env["BUILDERS"][builder].add_src_builder("Idlc")
env["BUILDERS"][builder].add_src_builder("Protoc")


Expand Down Expand Up @@ -5678,32 +5676,6 @@ if get_option("ninja") != "disabled":
new_emitter = SCons.Builder.ListEmitter([base_emitter, winlink_workaround_emitter])
builder.emitter = new_emitter

# idlc.py has the ability to print its implicit dependencies
# while generating. Ninja can consume these prints using the
# deps=msvc method.
env.AppendUnique(
IDLCFLAGS=[
"--write-dependencies-inline",
]
)
env.NinjaRule(
rule="IDLC",
command="cmd /c $cmd" if env.TargetOSIs("windows") else "$cmd",
description="Generated $out",
deps="msvc",
pool="local_pool",
)

def get_idlc_command(env, node, action, targets, sources, executor=None):
_, variables, _ = env.NinjaGetGenericShellCommand(
node, action, targets, sources, executor=executor
)
variables["msvc_deps_prefix"] = "import file:"
return "IDLC", variables, env.subst(env["IDLC"]).split()

env.NinjaRuleMapping("$IDLCCOM", get_idlc_command)
env.NinjaRuleMapping(env["IDLCCOM"], get_idlc_command)

# We can create empty files for FAKELIB in Ninja because it
# does not care about content signatures. We have to
# write_uuid_to_file for FAKELIB in SCons because SCons does.
Expand Down
136 changes: 0 additions & 136 deletions site_scons/site_tools/idl_tool.py

This file was deleted.

0 comments on commit 13d3ff1

Please sign in to comment.