1 //===- LinkerScript.cpp ---------------------------------------------------===// 2 // 3 // The MCLinker Project 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include <mcld/LinkerScript.h> 10 11 using namespace mcld; 12 13 //===----------------------------------------------------------------------===// 14 // LinkerScript 15 //===----------------------------------------------------------------------===// 16 LinkerScript::LinkerScript() 17 { 18 } 19 20 LinkerScript::~LinkerScript() 21 { 22 } 23 24 const mcld::sys::fs::Path& LinkerScript::sysroot() const 25 { 26 return m_SearchDirs.sysroot(); 27 } 28 29 void LinkerScript::setSysroot(const mcld::sys::fs::Path &pSysroot) 30 { 31 m_SearchDirs.setSysRoot(pSysroot); 32 } 33 34 bool LinkerScript::hasSysroot() const 35 { 36 return !sysroot().empty(); 37 } 38 39