diff --git a/compiler/src/prog8/compiler/ModuleImporter.kt b/compiler/src/prog8/compiler/ModuleImporter.kt index f8979f9fa..50dbb67a4 100644 --- a/compiler/src/prog8/compiler/ModuleImporter.kt +++ b/compiler/src/prog8/compiler/ModuleImporter.kt @@ -100,7 +100,7 @@ class ModuleImporter(private val program: Program, private fun removeDirectivesFromImportedModule(importedModule: Module) { // Most global directives don't apply for imported modules, so remove them - val moduleLevelDirectives = listOf("%output", "%launcher", "%zeropage", "%zpreserved", "%address", "%target") + val moduleLevelDirectives = listOf("%output", "%launcher", "%zeropage", "%zpreserved", "%address") var directives = importedModule.statements.filterIsInstance() importedModule.statements.removeAll(directives) directives = directives.filter{ it.directive !in moduleLevelDirectives }