Index: wasm/Config.h =================================================================== --- wasm/Config.h +++ wasm/Config.h @@ -36,7 +36,6 @@ uint32_t ZStackSize; llvm::StringRef Entry; llvm::StringRef OutputFile; - llvm::StringRef Sysroot; llvm::StringSet<> AllowUndefinedSymbols; std::vector SearchPaths; Index: wasm/Driver.cpp =================================================================== --- wasm/Driver.cpp +++ wasm/Driver.cpp @@ -254,7 +254,6 @@ Config->SearchPaths = args::getStrings(Args, OPT_L); Config->StripAll = Args.hasArg(OPT_strip_all); Config->StripDebug = Args.hasArg(OPT_strip_debug); - Config->Sysroot = Args.getLastArgValue(OPT_sysroot); errorHandler().Verbose = Args.hasArg(OPT_verbose); ThreadsEnabled = Args.hasFlag(OPT_threads, OPT_no_threads, true); if (Config->Relocatable) Index: wasm/Options.td =================================================================== --- wasm/Options.td +++ wasm/Options.td @@ -52,8 +52,6 @@ def strip_debug: F<"strip-debug">, HelpText<"Strip debugging information">; -def sysroot: J<"sysroot=">, HelpText<"Set the system root">; - def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"